ssh
SSH (Secure Shell) is a protocol for logging in to a remote machine and running commands on it over an encrypted connection.
In SSH, a client on one machine connects to a server on another, and both sides check each other's identity before any data passes. The server proves itself with a host key, which the client compares with the one it saw on earlier visits. The user then signs in, usually with a password or a key pair. The two sides agree on session keys, so all later traffic is encrypted and protected against tampering.
SSH replaced older tools such as Telnet and rlogin, which sent passwords and commands as plain text. It is now the standard way to administer servers and other machines that have no screen or keyboard. OpenSSH, the most widely used implementation, ships with nearly every Unix-like system and with recent versions of Windows. Because of that reach, almost any tool that acts on a remote machine can count on SSH being there.
Beyond a remote shell, one SSH connection can carry file transfers, through tools such as scp and sftp, and forwarded network ports. This makes it a general secure channel, not only a way to type commands on another machine. The protocol runs many channels side by side over a single connection. Tools such as Git and rsync use it as their transport rather than building security of their own. A sandbox or virtual machine can accept SSH connections like any other remote machine.
Related terms
Related posts