|
In computing, Secure Shell or SSH is a set of standards and an associated network protocol that allows establishing a secure channel between a local and a remote computer. It uses public-key cryptography to authenticate the remote computer and (optionally) to allow the remote computer to authenticate the user. SSH provides confidentiality and integrity of data exchanged between the two computers using encryption and message authentication codes (MACs). SSH is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding arbitrary TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols. An SSH server, by default, listens on the standard TCP port 22.
History In 1995, Tatu Ylönen, a researcher at Helsinki University of Technology, Finland, designed the first version of the protocol (now called SSH-1) prompted by a password-sniffing attack at his university network. The goal of SSH was to replace the earlier rlogin, TELNET and rsh protocols, which did not provide strong authentication or guarantee confidentiality. Ylönen released his implementation as freeware in July 1995, and the tool quickly gained in popularity. Towards the end of 1995, the SSH user base had grown to 20,000 users in fifty countries. In December 1995, Ylönen founded SSH Communications Security to market and develop SSH. The original version of the SSH software used various pieces of free software, such as GNU libgmp, but later versions released by SSH Secure Communications evolved into increasingly proprietary software. SSH Communications Security subsequently relicensed SSH to F-Secure (formerly known as Data Fellows), who later sold it to WRQ (now Attachmate), who markets it under the name Reflection for Secure IT *. SSH Secure Communications has a USA subsidiary in Palo Alto, California. In 1996, a revised version of the protocol, SSH-2, was designed, incompatible with SSH-1. In 2006, this protocol became a proposed Internet standard with the publication by the IETF "secsh" working group of RFCs (see references). SSH-2 features both security and feature improvements over SSH-1. Better security, for example, comes through Diffie-Hellman key exchange and strong integrity checking via MACs. New features of SSH-2 include the ability to run any number of shell sessions over a single SSH connection *. In 1999, developers wanting a free software version to be available went back to the older 1.2.12 release of the original ssh program, which was the last released under an open source license. Björn Grönvall's OSSH was subsequently developed from this codebase. Shortly thereafter, OpenBSD developers branched Björn's code and did extensive work on it, creating OpenSSH which shipped with the 2.6 release of OpenBSD. From this version, a "portability" branch was formed to port to other operating systems. As of 2005, OpenSSH is the single most popular ssh implementation, coming by default in a large number of operating systems. An ssh program commonly appears for use on Unix-like systems for client connections as well as a daemon such as sshd for accepting remote connections. Implementations of SSH exist for most modern platforms including Sun OS, Mac OS, Linux-based distributions, Microsoft Windows, and BSD operating systems. Commercial, freeware and open source versions of various levels of complexity and completeness exist. It is estimated that, at the end of 2000, there were 2,000,000 users of SSH.• Uses of SSH SSH is most commonly used: SSH architecture The SSH-2 protocol has a clean internal architecture (defined in RFC 4251) with well-separated layers. These are: This open architecture provides considerable flexibility, allowing SSH to be used for a variety of purposes beyond secure shell. The functionality of the transport layer alone is comparable to TLS; the user authentication layer is highly extensible with custom authentication methods; and the connection layer provides the ability to multiplex many secondary sessions into a single SSH connection, a feature comparable to BEEP and not available in TLS. Security cautions Since SSH-1 has inherent design flaws which make it vulnerable to, e.g., man in the middle attacks, it is now generally considered obsolete and should be avoided by explicitly disabling fallback to SSH-1. While most modern servers and clients support SSH-2, some organizations still use software with no support for SSH-2 making it hard to avoid the use of SSH-1. In all versions of SSH, it is important to verify unknown public keys before accepting them as valid. Accepting an attacker's public key as a valid public key has the effect of disclosing the transmitted password and allowing man in the middle attacks. As with any encrypted protocol SSH can be considered a security risk by companies or governments who do not trust their users. Furthermore SSH has built in tunneling features which make it easier for users to achieve passage of large volumes of information or to establish an entry point for unauthorized inward access over a SSH link than with other protocols. How ssh uses public-key cryptography (with analogy) Main article: Public-key cryptography First, a pair of cryptographic keys is generated, one is the private key, the other is the public key. As an analogy, they can be thought of as a matching private-key and a public padlock. The public padlock is what is installed on the remote machine and is used by ssh to authenticate users which use the matching private key. As a user of the system, you don’t care who can see or copy the padlock (ie the public key), since only the secret private key fits it. The private key is the part you keept secret inside a secure box that can only be opened with the correct passphrase. When the users wants access a remote system, he opens the secure box with his passphrase, and uses the private-key to authenticate him with the padlock on the remote computer. Neither the passphrase nor the private key leave the user's machine. However, the user still need to trust the local machine not to scrape his passphrase or a copy your private-key while it's out of its secure box. See also | ||||||||
|
| |||||||||
![]() |
|
| |