What is SSH (Secure Shell) ?
Wednesday, March 11 2009 @ 10:06 AM GMT
Views: 546
Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET and other insecure remote shells, which send information, notably passwords, in plaintext, leaving them open for interception. The encryption used by SSH provides confidentiality and integrity of data over an insecure network, such as the Internet.
Definition
SSH uses public-key cryptography to authenticate the remote computer and allow the remote computer to authenticate the user, if necessary.
SSH is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols. SSH uses the client-server model.
An SSH server, by default, listens on the standard TCP port 22.
An SSH client program is typically used for establishing connections to an SSH daemon accepting remote connections. Both are commonly present on most modern operating systems, including Mac OS X, Linux, FreeBSD, Solaris and OpenVMS. Proprietary, freeware and open source versions of various levels of complexity and completeness exist.
Uses of SSH
Example of tunneling an X11 application over SSH: the user 'josh' has SSHed from the local machine 'foofighter' to the remote machine 'tengwar' to run xeyes.
Logging into OpenWRT via SSH using PuTTY running on Windows.
Note that SSH is a protocol that can be used for many applications. Some of the applications below may require features that are only available or compatible with specific SSH clients or servers. For example, using the SSH protocol to implement a VPN is possible, but presently only with the OpenSSH server and client implementation.
* for login to a shell on a remote host (replacing Telnet and rlogin)
* for executing a single command on a remote host (replacing rsh)
* for copying files from a local server to a remote host. See SCP, as an alternative for rcp
* in combination with SFTP, as a secure alternative to FTP file transfer
* in combination with rsync to backup, copy and mirror files efficiently and securely
* for port forwarding or tunneling a port (not to be confused with a VPN which routes packets between different networks or bridges two broadcast domains into one.).
* for using as a full-fledged encrypted VPN. Note that only OpenSSH server and client supports this feature.
* for forwarding X11 through multiple hosts
* for browsing the web through an encrypted proxy connection with SSH clients that support the SOCKS protocol.
* for automated remote monitoring and management of servers
* for securely mounting a directory on a remote server as a filesystem on a local computer using SSHFS.
PuTTY SSH client: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
source: http://en.wikipedia.org/wiki/Secure_Shell
