Objective

Hands-on practice with ssh remote access in a Linux environment.

Tools & Technologies

  • OpenSSH
  • scp
  • ssh-keygen

Key Commands

ssh user@host
ssh-keygen -t ed25519
ssh-copy-id user@host
scp file user@host:/path

Lab 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