- Installed PuTTY 0.62 - Downloaded from: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html to: C:\Setup\PuTTY\PuTTY\putty.zip - Unzipped putty.zip into c:\Program Files\PuTTY\PuTTY\ resulting in files: PAGEANT.EXE PLINK.EXE PSCP.EXE PSFTP.EXE PUTTY.CNT PUTTY.EXE PUTTY.HLP PUTTYGEN.EXE - Ran PUTTY.EXE and connected to remote server hostname.domain.com. - Created PuTTY-formatted SSH keypair (*.ppk file) - Ran PUTTYGEN.EXE - If you already have an SSH key ($HOME/.ssh/id_rsa): - Conversions | Import | Browsed to $HOME/.ssh/id_rsa - Save Private Key - Save as id_rsa.ppk - If you do not already have an SSH key ($HOME/.ssh/id_rsa): - Generate | Move mouse randomly - Save Private Key as $HOME/.ssh/id_rsa.ppk - Save Public Key as $HOME/.ssh/id_rsa.pub - Copied the public key (NOT the private key!!!) to remote server hostname.domain.com, putting it in the $HOME/.ssh/ folder of the my_username user, and set the permissions properly, as documented at: http://bristle.com/Tips/Unix.htm#script_authorize_ssh_key Basically, this means: - Copy the file $HOME/.ssh/id_rsa.pub to the remote server - Login to the remote server as my_username and do: % mkdir -v -p .ssh % touch .ssh/authorized_keys % cat id_rsa.pub >> .ssh/authorized_keys % rm id_rsa.pub % chmod g-w .ssh % chmod g-w .ssh/authorized_keys - Note: For details of creating the correctly formatted one-line version of the public key to put into ~/.ssh/authorized_keys, see: http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter8.html#8.2.10 - Logged in w/PuTTY via keyfile - Made keyfile the default for PuTTY so PLINK.EXE will use it: - PUTTY.EXE - Connection - Data | Auto-login username = my_username - Connection - SSH | Auth | Private key file for Authentication = $HOME/.ssh/id_rsa.ppk - Session | Default Settings | Save - PLINK.EXE hostname.domain.com - Got in w/o password. Good! - Can use PLINK as "ssh" to: - Login interactively from Command Window (CMD) in Windows - Execute remote commands from CMD or Windows *.BAT file - May want to add "c:\Program Files\PuTTY" to your Windows PATH via AUTOEXEC.BAT or via Windows Control Panel | System