Services

Creating SSH keys for public Linux servers in Aalto

Instructions how to create the SSH keys.

Create SSH keys on a remote computer (the computer where you wish to make the ssh connection to Aalto shell server):

1. Run the command:

- In Linux or MacOS terminal:

  ssh-keygen -t ed25519 -f ~/.ssh/aaltokey

- in Windows PowerShell:

  ssh-keygen.exe -t ed25519 -f $HOME\.ssh\aaltokey

When prompted, give a passphrase to the key. This passphrase MUST be different from your Aalto password.

2. Copy the contents of the file .ssh/aaltokey.pub on remote computer to .ssh/authorized_keys file in your aalto home directory (eg. on VDI Linux or using VPN to connect the public server):

- use text editor and add the key manually:

  nano ~/.ssh/authorized_keys

- alternatively use ssh-copy-id while you are in Aalto network:

  ssh-copy-id -i ~/.ssh/aaltokey.pub aaltousername@kosh.aalto.fi

The public key should look something similar to this:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIsrCDob2Y0C7YQAF9vhHSTwG7d+WgbBfOqdEnlFkfng username@remote

3. You can now ssh to Aalto public server from a remote computer where you have the private part of the key pair stored (~/.ssh/aaltokey)


 

Related instructions

Linux shell servers at Aalto

Use Linux shell servers for doing coursework, programming or browsing the web.

This service is provided by:

IT Services

For further support, please contact us.
  • Updated:
  • Published:
Share
URL copied!