SSH Connection with Private Key on Linux or MacOS

  1. Open the terminal
  2. Use the ssh command with the -i option to specify the private key. The username is in the format: m000... . You can find it on the previous key generation page
ssh -i /path/to/private_key m0000000@sshta.math.unipd.it
to connect to the server in Torre Archimede
ssh -i /path/to/private_key m0000000@sshrc.studenti.math.unipd.it
to connect to the server Ricci Curbastro building.

For example, if you saved the key in the Downloads folder with the name id_ed25519.pem and your username is m0000001, you should type the command:

ssh -i Downloads/id_ed25519.pem m0000001@sshta.math.unipd.it

If the last command reports the error:

WARNING: UNPROTECTED PRIVATE KEY FILE!
You have to set the correct permission on the ssh key file : Please follow these instructions.


You can save the private key so that it is automatically used by the ssh command

  1. Open the terminal
  2. After using the ssh command above at least once, type this command:
cp /path/to/private_key $HOME/.ssh/id_ed25519

For example, if you saved the key in the Downloads folder with the name id_ed25519.pem, you should type the command:

cp Downloads/id_ed25519.pem $HOME/.ssh/id_ed25519

At this point, to connect, you can simply use the command:

ssh m0000001@sshta.math.unipd.it
or
ssh m0000001@sshrc.studenti.math.unipd.it

Always replace m0000001 with your assigned username