Create a ssh key

Access to the INCD computing clusters is performed via SSH and requires the use of SSH keys for authentication. Authentication with passwords is not supported. Each SSH key pair has two components a public key that must be added to the hosts to be remotely accessed, and a private key that must remain in the user workstation or laptop machine. The private key must be protected with a strong password. The users must generate their own SSH key pair in a machine of their own (workstation, laptop, etc). To generate your SSH key pair follow these instructions.

Linux and macOS

NOTE: xxx will be rsa, ed25519 or something similar. And you must check and replace it accordling in the instructions below.

$ ssh-keygen -b 4096 
Generating public/private xxx key pair.
Enter file in which to save the key (/home/username/.ssh/id_xxx): 
Created directory '/home/username/.ssh'.
Enter passphrase (empty for no passphrase):           ----> IMPORTANT: Choose a strong password 
Enter same passphrase again:                          ----> IMPORTANT: Choose a strong password
Your identification has been saved in /home/username/.ssh/id_xxx
Your public key has been saved in /home/username/.ssh/id_xxx.pub
ls -la $HOME/.ssh/
total 8
drwx------ 3 username group 4096 Jan 11 18:12 .
-rw------- 1 username group 1743 Feb 19 10:52 id_xxx
-rw-r--r-- 1 username group  404 Feb 19 10:52 id_xxx.pub
chmod 700 .ssh 
chmod 644 id_xxx.pub 
chmod 600 id_xxx

Microsoft Windows



Login does not work


Revision #58
Created 20 February 2019 17:48:20 by João Pina
Updated 5 June 2025 09:47:28 by Hugo Gomes