How to Configure Custom SSH Connection
how_to
This wiki will show you how to set up SSH keys and configure custom connection options for accessing uchicago tarbell. After successful configuration, you can login your tarbell much more simply by running the following command: ssh tarbell
- Create the RSA key pair:
- Open terminal
ssh-keygen -t rsa
- Press enter when you are prompted to
Enter a file in which to sae the key
- Type a passport when you are prompted to
Enter passphrase (empty for no passphrase):
- Type the same passport when you are prompted to
Enter same passphrase again:
- Append your public key to the server:
- Append your public key to the server using SSH (replace jiamaoz@tarbell.cri.uchicago.edu with your own one):
cat ~/.ssh/id_rsa.pub | ssh jiamaoz@tarbell.cri.uchicago.edu "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
- Create and configure the SSH config file:
touch ~/.ssh/config
chmod 600 ~/.ssh/config
emacs ~/.ssh/config
- Enter the following into config file:
Host tarbell
HostName tarbell.cri.uchicago.edu
User jiamaoz
- Login your uchicago tarbell:
ssh tarbell
Reference: - https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys–2 - https://www.digitalocean.com/community/tutorials/how-to-configure-custom-connection-options-for-your-ssh-client
Reuse
© HakyImLab and Listed Authors - CC BY 4.0 for Text and figures - MIT for code