Versions Compared

Key

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

...

For Steps 10 - 12 --- On Mac Terminal

*Please note that you do not have to name your key as keyfile-private-file

Code Block
scicomp@MAC2024 ~ % 
scicomp@MAC2024 ~ % ls -ld ~/.ssh  #Confirm you have a .ssh directory - in this example we have a .ssh 
drwx------  10 scicomp  staff  320 Sep  4 14:38 /Users/scicomp/.ssh

#If you DO NOT have an output as above  mkdir ~/.ssh

scicomp@MAC2024 ~ % cd .ssh
scicomp@MAC2024 .ssh % vim keyfile-private-file
#other commands: touch keyfile-private-file or nano keyfile-private-file
scicomp@MAC2024 .ssh % ls -l
-rw-------  1 scicomp  staff    420 May  9  2024 keyfile-private-file

#permissions have been change. If you have not change permissions use chmod 600 ~/.ssh/keyfile-private-file
#Your login will fail if your permissons are not as stated above.


scicomp@MAC2024 ~ % ssh -i <keyfile-private-file> <cwid>@cayuga-login1.cac.cornell.edu

...

Code Block
 Host cayuga-login1
   Hostname cayuga-login1.cac.cornell.edu
   IdentityFile ~/.ssh/your_cayuga_key
   User your_cwid
 Host c00*
   IdentityFile ~/.ssh/your_cayuga_key
   User your_cwid
   ProxyCommand ssh -i .ssh/[your_key_name] -W %h:%p cayuga-login1

In your chosen text editor you will save the file

...