Skip to content
On this page

ssh

Overview

In directory ~/.ssh:

  • Create an ssh config file (ssh)
  • Generate ssh keys and upload to remote servers (ssh)
flowchart LR
subgraph Local
A(Your computer)
end
A --> B{UCL Gateway}
subgraph UCL
B --> C(Myriad)
end

config

Create ~/.ssh/config (updating <TEXT_TO_REPLACE>):

# UCL's gateway node
Host UclSshGateway
IdentityFile ~/.ssh/ucl_key
User <UCL_USERNAME>
HostName ssh-gateway.ucl.ac.uk
# UCL's Myriad HPC server
Host myriad
IdentityFile ~/.ssh/ucl_key
User <UCL_USERNAME>
HostName myriad.rc.ucl.ac.uk
proxyCommand ssh -W myriad.rc.ucl.ac.uk:22 UclSshGateway
# For ineracting with GitHub
Host github.com
Hostname ssh.github.com
Port 443
IdentityFile ~/.ssh/github_key
# Store ssh key passwords securely
Host *
AddKeysToAgent yes
UseKeychain 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:

Edit this page
Last updated on 11/30/2022