12 Feb 2019

SSH

Secure Shell or Secure Socket shell is an application layer protocol.

→ Supports both password and key-based authentication

→ Encrypts data communication between computers

→ By default the server listens on HTTP port 22

SSH Commands

  • ssh-keygen: new auth key pair for SSH
  • ssh-copy-id: copies, installs and configures an SSH key on a server
  • scp: an SSH-secured version of the RCP protocol, lets the user copy files from one machine to another
  • sftp: an SSH-secured version of the FTP protocol, used to share files on the internet

Creating a Key Pair

ssh-keygen -t rsa

The -t flag means the type of key we want to generate.