SSH - theunissenlab/lab-documentation GitHub Wiki
This is to setup ssh access from anywhere via finch
I will refere to 3 machines here:
-
gateway: this refers to
finch
- remote: this refers to the computer on the lab subnetwork that you want to access remotely
- local: this refers to your own computer, not on the lab subnetwork
-
Generate an ssh key on your local machine.
-
First get your ssh keys added to finch - ask Logan, Julie or Frederic. For this example, the ssh key is named
~/.ssh/id_ed25519
Also, add this key to your remote computer's~/.ssh/authorized_keys
-
Setup your local ssh config
~/.ssh/config
- Add two entries:
Host finch
HostName 169.229.146.178
User ubuntu
IdentityFile ~/.ssh/id_ed25519
Host <remote>
HostName <remote_ip>
User <your user name>
ProxyCommand ssh ubuntu@finch -W %h:%p
- confirm this works:
ssh <remote>
Now you can run vscode servers on the remote machine