Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You should be able to connect to the remote machine without being prompted for a password. Exit to your local machine using Ctrl+D

Create a ssh config file

 

To make it easier to connect to the remote machine in the future, you can create or edit your ssh config file in  ~/.ssh/config. This file allows you to specify connection settings and aliases for different remote machines. To create an ssh config file, open the ~/.ssh/config file in a text editor and enter the following information, replacing user_id with your username on the remote machine:

Code Block
Host crc
    User user_id
    HostName gw.crc.rice.edu
    IdentityFile ~/.ssh/id_rsa

Host aries
    User user_id
    HostName aries.rice.edu
    ProxyJump crc
    Port 22
    IdentityFile ~/.ssh/id_rsa

Host nots
    User user_id
    HostName nots.rice.edu
    ProxyJump crc
    Port 22
    IdentityFile ~/.ssh/id_rsa

...

Code Block
languagebash
ssh nots

 The compute server will ask You will be prompted for a password.  Copy the public key to the compute servers. In order to do that Once you have entered it, you can edit or create a file called the ~/.ssh/authorized_keys and add the contents from your ~/.ssh/id_rsa.pub file in a new line.file on the compute server using a text editor like vi:

Code Block
languagebash
vi ~/.ssh/authorized_keys

Add the contents of your local machine's ~/.ssh/id_rsa.pub file to a new line in the authorized_keys file. Save the file exit the text editor (:wq) and then exit to your local machine with Ctrl+D.

...

Code Block
languagebash
ssh nots

You should now be able to connect to the compute servers server without being prompted for a password. You will need to do the same for every compute server

Repeat these steps for each additional compute server you want to connect to.

More Information

Attachments
nameARIES_Quick_Start_wl52_20220406.pdf

...