Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:stu:basics [2020/04/13 13:52] – [Accessing Lab Computers] Fix room number typo and remove laptop lab lam2mo | student:stu:basics [2024/11/11 14:44] (current) – Avoid idle timeouts morrispj | ||
---|---|---|---|
Line 14: | Line 14: | ||
=== Keypairs === | === Keypairs === | ||
You can avoid the need to authenticate yourself (with your eID and password) each time you login [[ student: | You can avoid the need to authenticate yourself (with your eID and password) each time you login [[ student: | ||
+ | |||
+ | === Timeout === | ||
+ | Add the following to your ~/ | ||
+ | < | ||
+ | Host * | ||
+ | TCPKeepAlive yes | ||
+ | ServerAliveInterval 15 | ||
+ | </ | ||
==== Accessing Lab Computers==== | ==== Accessing Lab Computers==== | ||
Line 19: | Line 27: | ||
^ Room ^ Hostname Range ^ | ^ Room ^ Hostname Range ^ | ||
- | | ISAT/CS 143 | L143{40..71}.cs.jmu.edu | ||
| ISAT/CS 248 | L248{01..32}.cs.jmu.edu | | | ISAT/CS 248 | L248{01..32}.cs.jmu.edu | | ||
- | | ISAT/CS 250 | L250{01..33}.cs.jmu.edu | | + | | ISAT/CS 250 | L250{01..31}.cs.jmu.edu |
+ | | ENGEO 2204 | L2204{01..32}.cs.jmu.edu | ||
This can be simplified by using the '' | This can be simplified by using the '' | ||
ssh -J < | ssh -J < | ||
+ | |||
+ | You can do this transparently by adding the following to your ~/ | ||
+ | |||
+ | Match !host stu.cs.jmu.edu host *.cs.jmu.edu !exec "nc -z -w 1 %h %p" | ||
+ | ProxyJump stu.cs.jmu.edu | ||
+ | |||
+ | This uses netcat to determine if you can connect directly to the host and if not, for all .cs.jmu.edu hosts other than stu, jump through stu. Connecting to a lab machine with this configuration is the same from on or off campus: '' | ||
Setting up keypairs is highly recommended if you're doing this regularly to avoid multiple password prompts. | Setting up keypairs is highly recommended if you're doing this regularly to avoid multiple password prompts. | ||
==== Transferring Files to and From stu ==== | ==== Transferring Files to and From stu ==== | ||
- | You can transfer files to " | + | You can transfer files to " |
- | If you want a more seamless experience or the ability to edit files on " | + | If you want a more seamless experience or the ability to edit files on " |
==== Using stu as an HTTP Server ==== | ==== Using stu as an HTTP Server ==== |