Version 3 (modified by vjo, 6 years ago)

--

Creating SSH keys compatible with PuTTY and ExoGENI

While most Unix variants use OpenSSH as client and server, the PuTTY ssh client is probably the most prevalent on Windows systems.

Flukes can make use of PuTTY's ssh keys for logging into ExoGENI nodes, but some care has to be taken.

The procedure for creating a PuTTY key to use with ExoGENI is:

  • Click the "Generate" button to create a key; you will need to move your mouse around to create entropy for the creation of the key.

  • Copy the contents of the box entitled "Public key for pasting into OpenSSH authorized_keys file:", and save these contents into a new, empty text file. In this example, let us save it into "C:\Users\ExampleUser?\.ssh\ExampleUser?.pub"

  • Click the "Save private key" button, after entering a passphrase for the key (if desired). If you do not enter a passphrase, you will be prompted about whether you are sure you wish to save the key without a passphrase.
  • Save the private key into the location of your choosing. PuTTY private keys are named with a ".ppk" suffix. In this example, we will save it into "C:\Users\ExampleUser?\.ssh\ExampleUser?.ppk"
  • Edit your .flukes.properties, and set the "ssh.key" and "ssh.pubkey" properties to the paths of your private and public keys, respectively. In the context of this example, we would set "ssh.key=C:/Users/ExampleUser/.ssh/ExampleUser.ppk" and "ssh.pubkey=C:/Users/ExampleUser/.ssh/ExampleUser.pub"
  • Note that, in the example above, we use "/" in paths in the .flukes.properties file, rather than the "\" that is usual on Windows.

Attachments