|
|
# On Fetdatorn
|
|
|
Runs automatically as a startup service using `systemctl`. Find information about the service through `systemctl`.
|
|
|
The service runs
|
|
|
`/usr/bin/ssh -vvv -XC -NT-R ${PORT_A}:localhost:${SSH_PORT} USERNAME@EXTERNALSERVER.COM -p ${PORT_B} -o ServerAliveInterval=20`
|
|
|
|
|
|
Runs automatically as a startup service using `systemctl`. Find information about the service through `systemctl`. The service runs `/usr/bin/ssh -vvv -XC -NT-R ${PORT_A}:localhost:${SSH_PORT} USERNAME@EXTERNALSERVER.COM -p ${PORT_B} -o ServerAliveInterval=20`
|
|
|
|
|
|
# Connect to Fetdatorn from your computer
|
|
|
|
|
|
`ssh -t $FIAUSER@axelwickman.com -p 723 -XC ssh $USER@localhost -p 5512 -XC` where you replace $USER with your username on fetdatorn and $FIAUSER with the remote user. Ask for passwords and usernames.
|
|
|
|
|
|
## Using VS Code
|
|
|
|
|
|
Install the Remote SSH extension and go to Remote Targets (SSH) in the navigation menu to the left.
|
|
|
|
|
|
Then add this config:
|
|
|
```
|
|
|
|
|
|
```plaintext
|
|
|
Host jump-host
|
|
|
HostName axelwickman.com
|
|
|
Port 723
|
... | ... | @@ -27,9 +29,9 @@ Host fetdatorn |
|
|
ProxyJump jump-host
|
|
|
```
|
|
|
|
|
|
|
|
|
If you are in the lab or on the eduroam network, you can instead connect "locally" through this config:
|
|
|
```
|
|
|
|
|
|
```plaintext
|
|
|
Host fetdatorn_local
|
|
|
HostName 10.133.5.136
|
|
|
User **{{Replace with your username}}**
|
... | ... | @@ -37,6 +39,14 @@ Host fetdatorn_local |
|
|
ForwardX11 true
|
|
|
```
|
|
|
|
|
|
You will see the entries in the remote extension in VS Code and can connect to them.
|
|
|
Example:
|
|
|
![image](uploads/66b6fcd8d40af80f4ffee0fbe88eaabb/image.png) |
|
|
\ No newline at end of file |
|
|
You will see the entries in the remote extension in VS Code and can connect to them. Example: ![image](uploads/66b6fcd8d40af80f4ffee0fbe88eaabb/image.png)
|
|
|
|
|
|
## NOTE: For improved security
|
|
|
|
|
|
Because fetdatorn is being accessed by several host this setting should be enabled
|
|
|
|
|
|
(Settings icon in lower left corner --> Settings --> search for "remote.SSH.remote")
|
|
|
|
|
|
![image](uploads/1996d8cf03ba55ff977504a3212bcd96/image.png)
|
|
|
|
|
|
## IMPORTANT: For mac users |
|
|
\ No newline at end of file |