Connection using an SSH key

The usual location for ssh keys is ~/.ssh on Mac/Linux and C:\Users\%username%\.ssh on Windows.

  • the public key that must be installed on the servers to which you want to connect.
  • id_rsa: the private key that must be on the machine you are connecting from. The private key should never be given to other people.

You can install multiple public keys on Azzurra (they will be listed in ~/.ssh/authorized_keys). You can also use the same key on several different computers (you will then have to copy the same private key id_rsa in the ssh directory locally on these machines).

Generate your SSH key

If you do not already have an SSH key, you can generate one:

Open a terminal and type ssh-keygen

On Windows, if this command isn’t recognized, you should first install the OpenSSH client: Settings > Apps > Optional Features > Add a feature > OpenSSH Client.

After running ssh-keygen your public key is in ~/.ssh/ on Mac/Linux and in C:\Users\%username%.ssh\ on Windows.

Copy your public key to Azzurra (or another server)

This will allow you to connect to Azzurra without password, in a more secure way.

For Mac or Linux users:

ssh-copy-id -i ~/.ssh/

If the ssh-copy-id command isn’t installed and you do not have the rights to install it, you can either send us your public key or perform the same procedure as for Windows below.


mkdir ~/.ssh 
chmod 700 .ssh 
cd .ssh 
touch authorized_keys
chmod 600 authorized_keys 
vim authorized_keys 
#copy the content of C:\Users\%username%\.ssh\ into authorized_keys then save and exit the session.

Feel free to contact us should you need any assistance.

To use your SSH key with FileZilla under Windows, see this page.