Download and install PuTTY from the following location: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
If this link is invalid, perform a web search for "PuTTY".
Create a cryptographic key using PuTTYGen (puttygen.exe) as follows:
On the PuTTY Key Generator dialog box, click .
Change the Key comment to include your machine name and Windows username.
Do not enter a key passphrase.
Save the private key file without a passphrase.
For example, C:\Users\username\Documents\id_rsa.ppk.
Move the public portion of the key to the Linux machine. This requires you to edit the ~/.ssh/authorized_keys file on the Linux machine as follows:
Open an SSH session to one of your cluster nodes, cd into ~/.ssh, and open the authorized_keys file in your favorite editor (for example,
Copy all the text from the box under Public key for pasting and paste it into ~/.ssh/authorized_keys. All of this text should be one line.
If the authorized_keys file does not exist, create one. Alternatively, paste it into a text file and move that file to the Linux machine for editing.
Open the Windows System Properties dialog box (from Control Panel, select System, then Advanced system settings).
On the Advanced tab, select Environment Variables. The Environment Variables dialog box appears.
In the Environment Variables dialog box, locate the Path variable in the System variables pane.
Select the Path variable and then click the button. The Edit System Variable dialog box appears.
Add the PuTTY install directory to the Variable value field separated by ; (for example, C:\Program Files\putty) and then click .
In the System variables pane, click the button. The New System Variable dialog box appears.
In the New System Variable dialog, create a new environment variable named KEYPATH with a value containing the full path to the private key file (for example, C:\Users\username\Documents\id_rsa.ppk).
Reboot the computer for environment changes to take effect.
In the Windows command line, do the following, for example,
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 2e:db:b6:22:f7:bd:48:f6:da:72:bf:59:d7:75:d7:4e
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
Store key in cache? (y/n)
Just answer y, and then Ctrl+C the rest.
Private key file for authentication.
id_rsa.ppkprivate key and click
Openagain to log into the remote server with key pair authentication.
Les articles connexes apparaissent ici en fonction des étiquettes que vous avez sélectionnées. Cliquez pour modifier la macro et ajouter ou modifier des étiquettes.