SSH - theunissenlab/lab-documentation GitHub Wiki

Enabling ssh access to machines on the local network

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
  1. Generate an ssh key on your local machine.

  2. 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

  3. 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
  1. confirm this works: ssh <remote>

Now you can run vscode servers on the remote machine

⚠️ **GitHub.com Fallback** ⚠️