Skip to content

SSH

SSH (Secure Shell) is a secure remote access and tunnelling protocol widely used for Linux administration, automation, and secure transport.


Features

  • Encrypted remote access
  • Public key authentication
  • Secure file transfer
  • Port forwarding
  • Tunnelling support

Common SSH Services

Service Purpose
SSH Remote shell
SCP Secure copy
SFTP Secure file transfer
SSH Tunnel Encrypted forwarding

SSH Architecture

graph LR
    A[SSH Client] --> B[Encrypted Session]
    B --> C[SSH Server]

Topics Covered

  • SSH key authentication
  • SSH hardening
  • SCP and SFTP
  • Port forwarding
  • SSH tunnelling
  • Linux administration
  • Troubleshooting

Generate SSH Keys

ssh-keygen -t ed25519

Connect to a Server

ssh user@192.168.1.10

Example SSH Tunnel

ssh -L 8080:localhost:80 user@server

Warning

Password authentication should be disabled in production environments whenever possible.