Setting up an ssh private key file

On the server RHEL 8 or Ubuntu 22 system, generate keys.

         mkdir ~/.ssh /* if you do not have this directory */ 
chmod 700 ~/.ssh
ssh-keygen -t rsa

Accept the default location and press Return key for passphrase

         Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ~/.ssh/id_rsa.
Your public key has been saved in ~/.ssh/id_rsa.pub.

Transfer key to remote system.

Copy ~/.ssh/id_rsa to a secure location on windows. You will specify this file in the Remote Execution > Compute Grid settings page in the Preferences dialog.

Add public key to server list.

         cp ~/.ssh/authorized_keys ~/.ssh/authorized_keys_Backup
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Make keys secure.

         chmod 600 ~/.ssh/authorized_keys

Test that you can connect to remote RHEL 8 or Ubuntu 22 system without a password.

Open PuTTY.

Enter the hostname in the PuTTY Configuration dialog.

Go to the SSH > Auth category.

Enter the keyfilename (that was transferred) in the Private key file for authentication field.

Press Open.


Legal Notice | Contact Certara
© Certara USA, Inc. All rights reserved.