Windows does not have an ssh command, to help you connect to a Linux computer using SSH2. Use putty to connect to your Linux computer from a Windows computer.
Pre-requisites:
- http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlYou have generated your key pair using openSSH as shown here, on your Linux computer.
- You have installed putty on your Linux computer.
- You have a Windows computer and a LAN with multiple computers connected to it.
1. | Generate a putty formatted private key from a SSH private key Open up a terminal window on your Linux computer. At the $ prompt, type following (commands to type in italics): $ cd ~/.ssh <enter> $ ls id* <enter> $ puttygen id_rsa -o id_rsa.ppk <enter> $ ls id* <enter>You should now find an id_rsa.ppk file in the list. |
2 | Test connection to computer using putty on Linux $ putty localhost -ssh -2 -P 22 -i id_rsa.ppk <enter> |
3 | Run putty on your Windows computer Copy the file from ~/.ssh/id_rsa.ppk to your Windows computer.You can get putty for windows from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. Now run putty on your windows computer and use the above key file to enable authentication with your Linux computer.You should be able to see the $ prompt of your Linux computer on your Windows computer. |