Creating SSH keys for public Linux servers in Aalto
Create SSH keys on a remote computer (the computer where you wish to make the ssh connection ÄûÃʵ¼º½ 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 ÄûÃʵ¼º½ 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
Aalto IT Services has several Linux servers available from the Internet with SSH. You can log in with your normal Aalto password and SSH public key authentication.