Project

General

Profile

Actions

Vm access » History » Revision 1

Revision 1/6 | Next »
Herve Caumont, 2013-06-19 18:05


SSH Connexion

Connect to your sandbox IP provided in your registration email.
Access makes use of your private keys with SSH.

1 Access to your Sandbox

The user (PI) who wants to access the VM, can do so by using his existing X.509 certificate. It is foreseen to generate these keys automatically when a sandbox instance is requested and make them downloadable from the portal interface. But for completeness, the manual steps involved for Unix and Windows are described below:

Unix / Linux

  • The user downloads his X.509 certificate from the user management portal (e.g. in PEM format), either with encrypted private key (recommended) or unencrypted private key (not recommended)
  • On the command line, the user can now directly access the VM using:
ssh -i <username>.pem <username>@<sandboxhost>

Depending on the downloaded format, the user has to provide his passphrase (if encrypted key was downloaded) or not (if the key was downloaded unencrypted).

Windows (using putty)

If the user wants to login from Windows using putty (a well-known freely available ssh client), the key must be converted into a putty-compatible format first:

  • The user must download his X.509 certificate from in PEM format [*with unencrypted key*].
  • From the file, the private key must be extracted manually (using a text editor): Copy the part
-----BEGIN RSA PRIVATE KEY-----
MII....
-----END RSA PRIVATE KEY-----

and paste it into a new file named e.g. <user>.private. Make sure this file is in a secure and safe place.

  • This private key must now be imported with puttygen either on the command line:
puttygen <user>.private

or using the import or load function in puttygen. The import should succeed with the following message:

  • The file must now be saved as private key either with (recommended) or without (not recommended) passphrase. Preferably name the resulting key <user>.ppk by clicking the "Save private key" button in the screen below:
  • Now the user can access the VM with putty in the command line:
    putty –I <user>.ppk <user>@<sandboxhost>
    

    or save the corresponding info in a Pageant session with the following four steps: In the session dialog, the "Host Name (or IP address)" field needs to be set to <sandboxhost> (Protocol SSH, Port 22):

  • The, <user> must be added to the "Auto-login username" field in the Connection dialog:

and the created private key file needs to be referenced in the "Private key file for authentication" field of the Auth dialog:

Finally, the session can be saved (Session dialog) or just opened (Open button below).

  • Make sure that the unencrypted X.509 PEM certificate is deleted (or at least stored in a secure and safe location) after this setup. The X.590 PEM certificate is not used to access the system with putty. Only the generated <user>.ppk file is needed.

Updated by Herve Caumont over 11 years ago · 1 revisions