Posts

Showing posts from February, 2009

SSH & SCP

What is SSH SSH (Secure SHell) is a network protocol which provides a replacement for insecure remote login and command execution facilities, such as telnet, rlogin and rsh. SSH encrypts traffic in both directions, preventing traffic sniffing and password theft. SSH also offers several additional 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. Basic SSH usage Remote login The basic syntax to log into a remote host is: ssh hostname If you want to specify a username, you may do it using an rlogin-compatible format: ssh -l user ho