Putty Configuration

  • Download PuTTY from the official website. As a minimum you only need PuTTY.exe, but the zip file and installer also include the following utilities which you may find useful:
    • PSFTP (a Secure FTP client for transferring files between your web server and PC)
    • Pageant (an SSH authentication agent for PuTTY, PSCP and Plink which will let you log in automatically)
    • PuTTYgen (an utility to generate RSA and DSA key pairs – needed by Pageant).

    LEGAL WARNING: Use of PuTTY, PSCP, PSFTP and Plink is illegal in countries where encryption is outlawed. PuTTYtel (a Telnet-only client) is available as a separate download and does not include the SSH encryption.

  • Run putty.exe
  • Select Connection – SSH in the Category Panel. Make sure that AES (SSH-2 only) is the top selection
  • Select Window in the Category Panel. Set Columns to 135. Change scrollback to 2000.
  • Select Window – Behaviour in the Category Panel. Set System menu appears on ALT alone.
  • If you want to enable automatic login, run PuTTYGen
    • Generate a key pair
    • Edit the Key comment and Passphrase. You will need the passphrase later
    • Save the private key somewhere safe
    • Save the public key in /.ssh/authorized_keys on your webhost
      • Grant write permission to the directory chmod 777 /.ssh
      • Grant write permission to the file chmod 777 /.ssh/authorized_keys
      • Save the public key at the end of the file pico /.ssh/authorized_keys
      • Restore Read Only access to the file chmod 444 /.ssh/authorized_keys
      • Restore Read Only access to the directory chmod 555 /.ssh
    • Select Connection – Data in the Category Panel and enter your login under Auto login userb=name
    • Select Connection – SSH – Auth in the Category Panel and enter the path to your Private key. Set Allow agent forwarding.
  • Select Session in the Category Panel. Enter your domain under Hostname. Enter a Session name under Saved Sessions and Save the session
  • Click Open. If you followed the steps for automatic login, you will have to enter the passphrase. If you do not want to do this every time, run Pageant and add your key.