SSH proxy jump: Difference between revisions
Line 7: | Line 7: | ||
==Using a SSH proxy jump to access a sandbox server== | ==Using a SSH proxy jump to access a sandbox server== | ||
Download the jump key files from Zulip and save them to the <code>~/.ssh/</code> on your laptop (not on the | Download the jump key files from Zulip and save them to the <code>~/.ssh/</code> on your laptop (not on the sandbox!): | ||
jump | jump | ||
Line 20: | Line 20: | ||
Identityfile ~/.ssh/jump | Identityfile ~/.ssh/jump | ||
Host | Host sandbox | ||
Hostname 10.0.0. | Hostname 10.0.0.XXX | ||
User USERNAME | User USERNAME | ||
ProxyJump xvm_jump | ProxyJump xvm_jump | ||
Line 27: | Line 27: | ||
Now, you should be able to ssh to | Now, you should be able to ssh to the sandbox, both from the school and outside the school, with this command: | ||
$ ssh chopchop | $ ssh chopchop |
Revision as of 14:37, 9 September 2024
As the collective sandbox servers are hosted from the school, they use a hidden VPN network to connect to the internet, famously known as the HUB.
To be able to SSH to a sandbox server from outside of the school, you can use a SSH proxy jump.
The SSH proxy jump will make a connection to the sandbox through XPUB's XVM server.
Using a SSH proxy jump to access a sandbox server
Download the jump key files from Zulip and save them to the ~/.ssh/
on your laptop (not on the sandbox!):
jump jump.pub
Copy the following config file, change the USERNAME to your username, and save it to ~/.ssh/config
on your laptop:
Host xvm_jump User jump Hostname 194.61.65.6 Port 2501 Identityfile ~/.ssh/jump Host sandbox Hostname 10.0.0.XXX User USERNAME ProxyJump xvm_jump Identityfile ~/.ssh/id_ed25519
Now, you should be able to ssh to the sandbox, both from the school and outside the school, with this command:
$ ssh chopchop