... | @@ -6,9 +6,13 @@ There's a script on fetdatorn at `/usr/bin/liu_reverse_ssh.sh` which contains: |
... | @@ -6,9 +6,13 @@ There's a script on fetdatorn at `/usr/bin/liu_reverse_ssh.sh` which contains: |
|
|
|
|
|
This forwards fetdatorns port 22 to port 8090 on ini.re. The script is executed by the service called `liu_reverse_ssh.service`, so if it doesn't work it might need to be restarted with `systemctl restart liu_reverse_ssh`. The script connects with a ssh key found in `/home/root/.ssh/inire_fia`.
|
|
This forwards fetdatorns port 22 to port 8090 on ini.re. The script is executed by the service called `liu_reverse_ssh.service`, so if it doesn't work it might need to be restarted with `systemctl restart liu_reverse_ssh`. The script connects with a ssh key found in `/home/root/.ssh/inire_fia`.
|
|
|
|
|
|
# Connect to Fetdatorn from your computer
|
|
The domain ini.re is owned by Rasmus Wallin.
|
|
|
|
|
|
`ssh -t fia@ini.re -XC ssh $FIAUSER@localhost -p 8090 -XC` where you replace $USER with your username on fetdatorn. Ask for passwords and usernames.
|
|
# Connect to Fetdatorn from your computer remotely
|
|
|
|
|
|
|
|
Use the following snippet to connect to fetdatorn remotely. Ask for usernames/passwords.
|
|
|
|
|
|
|
|
`ssh -J fia@ini.re $FIAUSER@localhost -p 8090`
|
|
|
|
|
|
## Using VS Code
|
|
## Using VS Code
|
|
|
|
|
... | @@ -17,15 +21,11 @@ Install the Remote SSH extension and go to Remote Targets (SSH) in the navigatio |
... | @@ -17,15 +21,11 @@ Install the Remote SSH extension and go to Remote Targets (SSH) in the navigatio |
|
Then add this config:
|
|
Then add this config:
|
|
|
|
|
|
```
|
|
```
|
|
Host jump-host
|
|
Host fetdatorn
|
|
HostName ini.re
|
|
HostName localhost
|
|
User fia
|
|
Port 8090
|
|
|
|
User *{{ask for username}}**
|
|
Host fetdatorn
|
|
ProxyJump fia@ini.re
|
|
HostName localhost
|
|
|
|
Port 8090
|
|
|
|
User **{{ask for username}}**
|
|
|
|
ProxyCommand ssh jump-host -W %h:%p
|
|
|
|
```
|
|
```
|
|
|
|
|
|
If you are in the lab or on the eduroam network, you can instead connect "locally" through this config:
|
|
If you are in the lab or on the eduroam network, you can instead connect "locally" through this config:
|
... | @@ -33,7 +33,7 @@ If you are in the lab or on the eduroam network, you can instead connect "locall |
... | @@ -33,7 +33,7 @@ If you are in the lab or on the eduroam network, you can instead connect "locall |
|
```plaintext
|
|
```plaintext
|
|
Host fetdatorn_local
|
|
Host fetdatorn_local
|
|
HostName 10.133.5.136
|
|
HostName 10.133.5.136
|
|
User **{{Replace with your username}}**
|
|
User **{{ask for username}}**
|
|
Compression yes
|
|
Compression yes
|
|
ForwardX11 yes
|
|
ForwardX11 yes
|
|
```
|
|
```
|
... | @@ -64,14 +64,11 @@ This is how my settings.json file look like. Note that remote.SSH.remotePlatform |
... | @@ -64,14 +64,11 @@ This is how my settings.json file look like. Note that remote.SSH.remotePlatform |
|
2. Update ssh.config to:
|
|
2. Update ssh.config to:
|
|
|
|
|
|
```
|
|
```
|
|
Host jump-host
|
|
Host fetdatorn
|
|
HostName ini.re
|
|
HostName localhost
|
|
User fia
|
|
Port 8090
|
|
|
|
User *{{ask for username}}**
|
|
Host fetdatorn
|
|
ProxyJump fia@ini.re
|
|
HostName localhost
|
|
|
|
Port 8090
|
|
|
|
User **{{ask for username}}**
|
|
|
|
ProxyCommand ssh jump-host -W %h:%p
|
|
|
|
```
|
|
```
|
|
|
|
|
|
3. NOTE: When connecting to fetdatorn, you may be prompted to enter passwords twice. |
|
3. NOTE: When connecting to fetdatorn, you may be prompted to enter passwords twice. |
|
|
|
\ No newline at end of file |