Networking, SSH, and tmux
Learning goals
- I will be able to identify my computer’s hostname, IP address, gateway, and network connection.
- I will be able to connect to an approved Linux host with SSH and verify where I am logged in.
- I will be able to create, detach from, and rejoin a tmux session responsibly.
This is important because it enables me to work on a Linux computer from another computer and collaborate in a terminal without confusing local and remote systems.
Make a copy of the 3.5 Linux Networking, SSH, and tmux draft. Do not begin until your teacher posts it in Google Classroom and supplies the approved host and account.
Progression
- Use the GUI to identify the active connection and local IPv4 address.
- Confirm the hostname and addresses with
hostname,ip address, andip route. - Use
pingonly with a teacher-approved host to test reachability. - Connect to the assigned host using
ssh user@host. - Immediately run
hostname,whoami, andpwdso you know which computer, account, and directory you are controlling. - Create a named tmux session, open a second window, detach, and reattach.
- Join a teacher-approved shared session with a partner. Communicate before typing because both users can affect the same terminal.
- Exit the remote session cleanly and confirm that you are back on the local computer.
Do not scan the network, attempt unknown accounts, share passwords, expose SSH to the public internet, or use another student’s session without permission.
Evidence
Submit a simple local-to-remote network diagram, a command transcript with private details removed, and a reflection describing one benefit and one risk of a shared terminal.
Everyday Python project: Connection Check
Create a short Python program that prints the computer hostname and checks whether one teacher-approved website is reachable. Handle success, timeout, and connection failure with clear messages. This is a service check, not a network scanner. Do not probe addresses, ports, devices, or accounts that the teacher did not provide.
Extend your learning
- Read the Ubuntu OpenSSH server guide.
- Work through the tmux getting-started guide.
- Investigate SSH keys conceptually before replacing classroom password authentication.
Review and reflect
How did you prove whether a command was running locally or remotely? Why is a tmux session different from screen sharing?