PuTTY is a free and easy to use ssh client for Windows. You can use it to connect to your favorite remote Linux servers in text mode, and start remote graphical applications if you also have a running X server
Official web site: PuTTY Web site
You can install the latest version of PuTTY directly from Microsoft Store, or download the latest 64-bit msi installer
Download the latest version, or just type winget upgrade --id XPFNZKSKLBP7RJ
in a Windows Terminal
You could directly launch PuTTY (Start
⇒ PuTTY
⇒ PuTTY
), but it is actually more efficient to use Pageant
for opening terminals, especially if you are often going to connect to the same server(s)
Starting Pageant
: Start
⇒ PuTTY
⇒ Pageant
Pageant
is an ssh agent for Windows, but this page also explains how to use it for easily creating and using connection profiles (aka Sessions) to connect to remote Linux serversPageant
as an ssh-agent, instead of asking you to type your ssh passphrase
Launch the PuTTY Configuration manager: (Right click on) Pageant
⇒ New Session
Load
an existing (and properly configured) session, Save
it under a new name, change the session details, and then save the session again.PuTTY
Configuration window, and change the displayed settings in the right part of the window.Save
!
In the Session
Category:
ssh1.lsce.ipsl.fr
for the LSCE access server (also called LSCE gateway)ssh1
If you are in a hurry, you can connect to the Linux server specified in the Host Name field by clicking on Open
Load
an existing session (e.g. the ssh1 profile defined above), that will serve as a template (with the recommended settings) for the future sessionsWindow
⇒ Selection
category:Window
⇒ Appearance
category:Connection
⇒ Data
category:xterm-256color
instead of the default xterm
terminal type in the Terminal-type string
field. This will allow you to display nicer colors in the terminals (for the applications that use fancy colors)Connection
⇒ SSH
⇒ Kex
category:Connection
⇒ SSH
⇒ Auth
category:Connection
⇒ SSH
⇒ X11
category:
Start Pageant, and then the PuTTY Configuration manager: (Right click on) Pageant
⇒ New Session
Host Name
⇒ obelix
Saved Session
⇒ obelix (direct connection)
Host Name
⇒ spirit1.ipsl.fr
Saved Session
⇒ spirit1
Connection
⇒ Data
⇒ Auto-login username
Category
⇒ Session
and Save the sessionssh1
) and click on Load.Connection
⇒ SSH
category, specify the command used to connect to the target server from the gateway, in the Remote command fieldNote: PuTTY will ask your password each time you open a session, unless you have ssh keys, and you use Pageant to store your passphrase
Once you have started pageant, and configured sessions, you can easily open terminals on the remote servers by right-clicking on the pageant icon, and selecting a Saved Session.
It is possible to create a shortcut on the desktop to start a specific session!
New
⇒ Shortcut
putty.exe
in the path field, and click Next
:"C:\Program Files\PuTTY\putty.exe"
(with the quotes!)obelix via ssh1
Pageant
⇒ Session
⇒ Saved Sessions
)"C:\Program Files\PuTTY\putty.exe" -load "obelix via ssh1"
"C:\Program Files\PuTTY\putty.exe" -load "obelix (direct)"
Pageant
icon!
In this section, we will use key files that have the same base name, and different extensions: e.g. id_ed25519
, id_ed25519.pub
and id_ed25519.ppk
You should make sure that you can see hidden folders, and files' extensions before you go further!
Read the Using ssh keys section if you don't already know what ssh keys are
If you already have a private ssh key generated on another computer (e.g. an id_ed25519
text file), you just have to use PuTTYgen
to import the existing private key, and then export it to a converted id_ed25519.ppk
file that Pageant
can use
id_ed25519
key file to the Windows ssh configuration directoryC:\Users\your_windows_login\.ssh\id_ed25519
PuTTY Key Generator
: Start
⇒ PuTTY
⇒ PuTTYgen
id_ed25519
private key file (or another valid private key) and type the passphrase to unlock and import itSave private key
button, and create an id_ed25519.ppk
file in the Windows ssh configuration directoryC:\Users\your_windows_login\.ssh\id_ed25519.ppk
If you don't already have an existing set of recent-enough ssh keys, follow the steps below to create a set of private and public keys.
Notes:
Steps:
PuTTY Key Generator
: Start
⇒ PuTTY
⇒ PuTTYgen
PuTTYgen
window) is EdDSA
(short for Edwards-curve DSA), with the default 255
bits.RSA
and 4096
bits, but ed25519
keys are now recommended to access the IPSL serversGenerate
button and move your mouse to generate some random informationKey passphrase
and confirm itSave private key
button, and create the id_ed25519.ppk
Pageant private key fileC:\Users\your_windows_login\.ssh\id_ed25519.ppk
.ppk
extension can only be used by PuTTY
/pageant
. That's why you also need to export the private key, as shown belowConversions
⇒Export OpenSSH Key
and create the id_ed25519
standard private key file (a text file with no .ppk
extension)C:\Users\your_windows_login\.ssh\id_ed25519
PuTTY
, but you may need to use this private key in a standard text format later, on Linux computers/serversid_ed25519.pub
standard public key fileC:\Users\your_windows_login\.ssh\id_ed25519.pub
Public key for pasting into OpenSSH authorized_keys file
field in the id_ed25519.pub
filessh-ed25519 AAAAC3NzaC1lZDI[... lots of characters ...]vwjLNmY eddsa-key-20230310
Save public key
button to create the public key file, because the resulting file will not be standard enough to be used directly on Linux computers
We assume that the private key file is available locally in <some_disk_different_from_c>:\Users\<your_login>\ssh\
Pageant
and open the Pageant Key List
window by:Pageant
Pageant
and choosing View keys
Pageant
, on remote servers where the public key matching the private key used in Pageant
was installed correctly
[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]