ssh-keygen -t rsa -b 4096 -C "[email protected]" # generate the SSH key
xclip -sel clip < ~/.ssh/id_rsa.pub # send the key to che clipboard
ssh [email protected] # SSH to storm
ssh-add
[Add the previous key to ~/.ssh/authorized_keys
], then
ssh-keygen -t rsa -b 4096 -C "[email protected]" # generate the SSH key
xclip -sel clip < ~/.ssh/id_rsa.pub # send the key to che clipboard
ssh [email protected]
[Add both SSH keys to ~/.ssh/authorized_keys
]
Add this to ~/.ssh/config
:
Host comic100
User your_cs_username
HostName comic100.cs.ucl.ac.uk
proxyCommand ssh -W comic100.cs.ucl.ac.uk:22 [email protected]
Install sshfs
and mount the remote dir:
sudo apt install sshfs
mkdir ~/cluster
sshfs comic100:/ ~/cluster
If you want to mount on startup, add the corresponding line to /etc/fstab
.