This is an old revision of the document!
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
You could directly launch PuTTY (Start
⇒ PuTTY
⇒ PuTTY
), but it is actually more efficient to launch Pageant
, 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: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
⇒ ciclad.ipsl.upmc.fr
Saved Session
⇒ ciclad
Connection
⇒ Data
⇒ Auto-login username
ciclad
!!Category
⇒ Session
and Save the sessionssh1
) and click on Load.Connection
⇒ SSH
category, specify the command used to connect to the target server 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!Read the Using ssh keys section if you don't know what ssh keys are
ssh
sub-directory somewhere
Launching the PuTTY Key Generator
: Start
⇒ PuTTY
⇒ PuTTYgen
If you already have a private ssh keys generated on another computer (e.g. an id_rsa
text file), you just have to use PuTTYgen
to import the existing private key, and then export it to a converted .ppk
file that Pageant
can use
If you don't have a set of ssh keys, follow the steps below to create private and public keys
PuTTYgen
window) is RSA
and that the number of bits is 4096
Generate
button and move your mouse to generate some random informationKey passphrase
and confirm itSave public key
button, and create a id_rsa.pub
fileConversions
⇒Export OpenSSH key
, and create a (standard) id_rsa
file
[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]