Skip to content

PuTTY

SSH in Windows Terminal

Windows 10 has a built-in SSH client that can be used in the command line without installing third party tools. For simple use cases like accessing lxplus this is the easiest solution and should be more than enough. To connect to lxplus using this SSH client, follow the steps below:

  1. Open a command prompt (CMD or PowerShell)
  2. Execute <username>@lxplus.cern.ch, be sure you enter your actual username
  3. Log in with your password

If you need Help!

What is PuTTY?

PuTTY is an open source terminal emulator, developed originally by Simon Tatham for the Windows platform. It provides a text user interface to remote computers running any of its supported protocols, including SSH and Telnet.

At CERN, a custom in-house version is available as PuTTY_CERN, which provides automatic SSO authentication as the current account via GSS API.

Features

  • A variations of secure remote terminals
  • User control over the SSH encryption key and protocol version
  • Alternate ciphers such as AES, 3DES, RC4, Blowfish, DES, and Public-key authentication.
  • PuTTY uses its own format of key files – PPK (protected by Message Authentication Code).
  • SSO support through GSSAPI.
  • Control sequence emulation from xterm, VT220, VT102 or ECMA-48 terminal emulation,
  • Local, remote, or dynamic port forwarding with SSH (including X11 forwarding).
  • Local serial port connections.
  • SCP and SFTP clients pscp and psftp respectively

How to install PuTTY_CERN?

  1. Right-click the CMF icon (traybar), then select Add/Remove CMF Packages.
  2. If required, please Authenticate with your CERN login and password
  3. In Category dropdown list, select Connectivity Software and look for PuTTY_CERN, tick the box Install and then push the Save button.
  4. Wait until the CMF icon in the system tray starts blinking. Right-click on it and then select Pending Actions option.
  5. Click the Start Now button. The installation is silent and a CMF notification in the tray bar will be displayed when it is completed.

Usage

How to connect to lxplus?

LxPlus resource

As mentioned in KB0005541: CERN users without the LxPlus Resource from the CERN Resource Portal will be denied access to LxPlus.

To connect to LxPlus, after opening the application, type "lxplus" in the Host Name (or IP Address) field, keep the Connection Type as "SSH" and Port 22.

How to generate a Private/Public key pair?

  1. Open the PuTTYgen application. It can be found in Start Menu > All programs > PuTTY > PuTTYgen
  2. Select the type of key to be generated and click "Generate"
  3. Move the mouse over the empty/blank area to generate some randomness for the key.
  4. Set up a password for the key if needed.
  5. Save the Private and Public keys.

Converting existing key

Note that an existing key (i.e. RSA key) can be imported and saved as .ppk to be used in PuTTY.
In order to do this, use the "Load" button and filter by "All files (*.*)"

Additional information