Skip to content

Commit

Permalink
different windows command
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed Jun 3, 2024
1 parent c1807a1 commit 97ba4d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/access.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Host sshgw.aau.dk
# use the same user name (and optional SSH key) for all bioservers
# uncomment the ProxyJump line for external access without VPN
Host *.srv.aau.dk
Host *.srv.aau.dk bio-os*
User [email protected]
Port 22
IdentityFile ~/.ssh/keys/bioservers
Expand Down
10 changes: 8 additions & 2 deletions docs/guides/sshdslurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,15 @@ On your local computer, you need to set up a bridge connection through a login n

Then add the following line somewhere:

**Windows**
```
Host bio-ospikachu02-sshdbridge
ProxyCommand ssh bio-ospikachu02.srv.aau.dk bash -c \"nc \$(squeue --me --name=sshdbridge --states=R -h -O NodeList,Comment)\"NodeList,Comment)"
```

**Linux/MacOS**
```
Host bio-ospikachu02-sshdbridge
User [email protected]
ProxyCommand ssh bio-ospikachu02.srv.aau.dk "nc \$(squeue --me --name=sshdbridge --states=R -h -O NodeList,Comment)"
```

Expand All @@ -65,4 +71,4 @@ Now you can start working! Whatever you do in VS Code now will run remotely insi

## Notes
- You will not be able to connect if you use an [SSH jump host](../../access/#using-an-ssh-jump-host). [Connect through VPN](../../access/#vpn) instead if you are not at AAU.
- You can connect to the same job simultaneously as many times as you want, however if you have separate resource requiements, you must submit individual jobs and use a different name for each job, and also create separate entries in the SSH config for each job.
- You can connect to the same job simultaneously as many times as you want, however if you have separate resource requirements, you must submit individual jobs and use a different name for each job, and also create separate entries in the SSH config for each job.

0 comments on commit 97ba4d7

Please sign in to comment.