| Port | Protocol | Service | What it does |
|---|---|---|---|
sudo apt install openssh-serversudo systemctl enable --now sshsystemctl status ssh — shows "active (running)"ip addr showssh username@server_iphostname — does it show the server's hostname?who — can you see your session listed?exit or Ctrl+Dssh-keygen -t ed25519 -C "yourname-course"cat ~/.ssh/id_ed25519.pubssh-copy-id username@server_ipls -la ~/.ssh/| File | Required permissions | Actual permissions |
|---|---|---|
| ~/.ssh/ | 700 | |
| id_ed25519 | 600 | |
| id_ed25519.pub | 644 |
~/.ssh/config with nanoHost partner
HostName server_ip
User username
IdentityFile ~/.ssh/id_ed25519
ssh partner — does it connect?scp ~/scripts/greet.sh partner:/tmp/MIN HOUR DOM MON DOW command * * * * * every minute 0 3 * * * 3am daily 0 3 * * 0 3am every Sunday */5 * * * * every 5 minutes 0 9-17 * * 1-5 9am-5pm weekdays
>> /log 2>&1