PuTTY
Installation
Configuration
Windows Machine:
- make a new directory: "[My Documents]\.ssh"
- start a CMD and execute the command "[Program Files folder]\putty\puttygen"
- press "Generate"
- move your mouse randomly (this is kind of funny :)
- fill out the form:
key comment: [computername]
key passphrase & confirm passphrase: [password]
- press "Save private key" and save it to "[My Documents]\.ssh\identity.ppk"
- press "Save public key" and save it to "[My Documents]\.ssh\[computername].pub"
- mark and copy the public key from the textbox in puttygen
Remote Machine:
It is assumed that the SSH server is running Linux.
- log in with your username and password
- if there isn't a ~/.ssh directory, create it
- append the public key to ~/.ssh/authorized_keys/
- join all the lines of the new key and remove linefeeds
- protect your authorized_keys file
$ chmod 600 ~/.ssh/authorized_keys
Windows Machine:
- start PuTTY
- set Connection -> Auto-login username to your username on the linux machine
- set Connection -> SSH -> Preferred SSH protocol version to 2
- in Connection -> SSH -> Auth -> Private key file for authentication, enter the path to your private key, "[My Documents]\.ssh\identity.ppk"
Usage
plink
C:\>"\Program Files\putty\PLINK.EXE" -i [My Documents]\.ssh\identity.ppk user@server
RMB -> TortoiseSVN -> Settings -> Network -> SSH Client:
C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -i [My Documents]\.ssh\identity.ppk -l username