ssh
Overview
In directory ~/.ssh
:
flowchart LRsubgraph LocalA(Your computer)endA --> B{UCL Gateway}subgraph UCLB --> C(Myriad)end
config
Create ~/.ssh/config
(updating <TEXT_TO_REPLACE>
):
# UCL's gateway nodeHost UclSshGatewayIdentityFile ~/.ssh/ucl_keyUser <UCL_USERNAME>HostName ssh-gateway.ucl.ac.uk# UCL's Myriad HPC serverHost myriadIdentityFile ~/.ssh/ucl_keyUser <UCL_USERNAME>HostName myriad.rc.ucl.ac.ukproxyCommand ssh -W myriad.rc.ucl.ac.uk:22 UclSshGateway# For ineracting with GitHubHost github.comHostname ssh.github.comPort 443IdentityFile ~/.ssh/github_key# Store ssh key passwords securelyHost *AddKeysToAgent yesUseKeychain yes
keys
Create ssh keys, e.g. create ucl_key
from above as follows:
ssh-keygen -f ~/.ssh/ucl_key
This will generate ucl_key
and ucl_key.pub
. The public key now needs to be uploaded to the server
See also:
- https://www.freecodecamp.org/news/the-ultimate-guide-to-ssh-setting-up-ssh-keys/
- https://linuxhandbook.com/add-ssh-public-key-to-server/
Edit this page
Last updated on 11/30/2022