Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| student:stu:basics [2019/10/22 10:35] – [Logging in to stu] fulle2ch | student:stu:basics [2024/11/11 14:44] (current) – Avoid idle timeouts morrispj | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| ===== Help with stu.cs.jmu.edu ===== | ===== Help with stu.cs.jmu.edu ===== | ||
| - | |||
| - | |||
| " | " | ||
| Computer Science Department. | Computer Science Department. | ||
| + | ==== Logging in to stu ==== | ||
| + | You can login to " | ||
| + | To log in, type the following in a terminal/ | ||
| - | ==== Logging in to stu ==== | + | ssh < |
| - | You can login to " | + | Enter your password when prompted. Nothing will appear on the screen so type carefully! |
| + | === 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: | ||
| - | To log into a specific lab computer you first login to stu as normal and then you use "ssh L[room_number][computer_number]" | + | === Timeout === |
| + | Add the following to your ~/ | ||
| + | < | ||
| + | Host * | ||
| + | TCPKeepAlive yes | ||
| + | ServerAliveInterval 15 | ||
| + | </ | ||
| + | |||
| + | ==== Accessing Lab Computers==== | ||
| + | To log into a specific lab computer you first login to stu as normal and then ssh to a lab machine by hostname. The hostnames are based on the room and computer number and take the form "L[room_number][computer_number].cs.jmu.edu". | ||
| + | |||
| + | ^ Room ^ Hostname Range ^ | ||
| + | | ISAT/CS 248 | L248{01..32}.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 '' | ||
| + | |||
| + | ssh -J < | ||
| + | |||
| + | You can do this transparently by adding | ||
| + | |||
| + | 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. | ||
| - | ==== Transferring Files to stu ==== | + | ==== Transferring Files to and From stu ==== |
| + | You can transfer files to " | ||
| - | You can transfer | + | 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 ==== | ||
