PuTTY on Windows

PuTTY is a terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. It can also connect to a serial port.

1. Installation

1.1 Download

The PuTTY installer (look for “Windows installer for everything except PuTTYtel”) can be downloaded from its homepage at chiark.greenend.org.uk.

1.2 Installer

After downloading the installer, run it and follow the screenshots below.

../../_images/putty-0001.png

../../_images/putty-0002.png

../../_images/putty-0003.png

../../_images/putty-0004.png

../../_images/putty-0005.png

../../_images/putty-0006.png

2. Configuration

2.1 Create a SSH Key

../../_images/puttygen-0001.png

../../_images/puttygen-0002.png

../../_images/puttygen-0003.png

../../_images/puttygen-0004.png

../../_images/puttygen-0005.png

../../_images/puttygen-0006.png

../../_images/puttygen-0007.png

2.2 Set default User Name

../../_images/putty-0007.png

2.3 Use default Key Authentication

../../_images/putty-0008.png

../../_images/putty-0009.png

../../_images/putty-0010.png

2.4 Enable X11 Forwarding

../../_images/putty-0011.png

2.5 Use SSH Gateways

  1. Create a new SSH key (RSA, 4096bit) with puttygen.exe, save it as PuTTY key (key.ppk) and send the OpenSSH public key to ITS Linux System Administration via the servicedesk.
  2. Start PuTTY and create a session named ssh-gateway.example.org with the following configuration:
    • Session / Host Name: ssh-gateway.example.org
    • Connection / Data / Auto-login username: john
    • Connection / SSH / Auth / Private key file for authentication:
      Select your previously created private key (key.ppk).
  3. Create a second session named intern.example.org with the following configuration:
    • Session / Host Name: intern.example.org
    • Connection / Data / Auto-login username: john
    • Connection / Proxy / Proxy type: Local
    • Connection / Proxy / Proxy hostname: ssh-gateway.example.org
    • Connection / Proxy / Port: 22
    • Connection / Proxy / Username: john
    • Connection / Proxy / Telnet command, or local proxy command:
      plink -agent -l %user %proxyhost -nc %host:%port
    • Connection / SSH / Auth / Private key file for authentication:
      Select your previously created private key (key.ppk).