2.1. SSH protocol basics
Secure Shell (SSH), sometimes known as Secure Socket Shell, is a Unix-based command interface and protocol for securely getting access to a remote computer. It is widely used by network administrators to control Web and other kinds of servers remotely. SSH is actually a suite of three utilities - slogin, ssh, and scp - that are secure versions of the earlier UNIX utilities, rlogin, rsh, and rcp.
SSH also offers useful features:
- Compression - traffic may be optionally compressed at the stream level.
- Public key authentication - optionally replacing password authentication.
- Authentication of the server - making ”man-in-the-middle” attack more difficult
- Port forwarding - arbitrary TCP sessions can be forwarded over an SSH connection.
- X11 forwarding - SSH can forward your X11 sessions too.
- File transfer - the SSH protocol family includes two file transfer protocols (SFTP and SCP)
2.2 SCP and SFTP