SSH Remote Access
Objective
Hands-on practice with ssh remote access in a Linux environment.
Tools & Technologies
OpenSSHscpssh-keygen
Key Commands
ssh user@hostssh-keygen -t ed25519ssh-copy-id user@hostscp file user@host:/pathLab Steps
01
Install OpenSSH Server
Install and enable the OpenSSH server on a Linux VM using systemctl.
02
Key-Based Authentication
Generate an ED25519 key pair with ssh-keygen and copy the public key to the remote host.
03
SSH Config File
Configure ~/.ssh/config with Host aliases, IdentityFile, and Port directives for convenience.
04
Secure Copy
Transfer files between hosts using scp and explore rsync for efficient syncing.
Challenges Encountered
- Password authentication conflicts when key is set
- Permission errors on ~/.ssh/authorized_keys (must be 600)
Key Takeaways
- ED25519 keys are faster and more secure than RSA
- Config file aliases save time with multiple hosts