Differences between SSL and SSH

Source: Internet
Author: User
Tags ssl connection
Some people say that SSH is generally used to provide secure login. SSL is only a layer added to the protocol layer to provide security.
SSH works on TCP. After an SSH application is started, other protocol applications, such as emails, can be run in the channel.
SSL can be considered as if the application itself supports SSL, then it automatically uses the SSL connection to run after it is started. Of course, we do not need to use SSH again.
SSL can be considered as a feature supported by the program code level.
SSH is a tool we can choose the day after tomorrow. It encapsulates our connection with tunnel technology.
From the name:
SSL: Secure Socket Layer, a protocol layer that is added for security during the program build period
SSH: Secure Shell: Shells added to programs that can run normally.
It is recommended that you do not compare two items, not a category. For comparison, use Telnet and SSH.

Posted on June 2, 2006 by snow

Yesterday, Jim suddenly asked me, what is the difference between SSH and SSL? What's the difference ?... I have to tell him that I don't know :(

Check it back in the evening.

In the OSI Layer-7 model, the two secure transmission protocols are actually built on the application layer:


(Image Source: Wikipedia)

In the initial design intent, SSL (Secure Sockets Layer (SSL) and Transport Layer Security (TLS) was designed to enhance Web security transmission (HTTP/https /) SSH (Secure Shell) is designed to enhance the Telnet/FTP security transmission protocol. By default, it uses port 22.

Taking SSL as an example, the location of SSL during transmission is basically as follows:

---------
| HTTP |
---------
| SSL |
---------
| TCP |
---------
| IP |
---------

To access a webpage using the SSL protocol, follow these steps:
User: enter in the address bar of the browserHttps://www.sslserver.com
HTTP layer: translate user requirements into HTTP requests, such
GET/index.htm HTTP/1.1
HostHttp://www.sslserver.com

SSL layer: uses the channel security negotiation of the lower-layer protocol to produce an encryption key, and uses this key to Encrypt HTTP requests.

TCP layer: establishes a connection with port 443 of the Web server to transmit data processed by SSL.

The acceptor is opposite to this process.

SSL establishes an encrypted channel over TCP, and the data at this layer is encrypted, thus achieving the effect of confidentiality.

The SSL protocol consists of handshake protocol and record protocol ,. Handshake protocol
Used to negotiate a key. Most of the content of the Protocol is how the communication parties use it to negotiate a key securely. Re
The cord Protocol defines the transmission format.

References:
[1] Secure Shell
Http://en.wikipedia.org/wiki/Secure_Shell
[2] Transport Layer Security
Http://en.wikipedia.org/wiki/Transport_Layer_Security
[3] SSL/TLS/WTLS principles
Http://groups.google.com/group/cn.bbs.comp.ms-windows/browse_thread/thread/e8508d4535c81d2b/2cca1b45b182ceff%232cca1b45b182ceff
[4] What is the difference between SSH and SSL?
Http://www.rpatrick.com/tech/ssh-ssl/



From: http://blog.chinaunix.net/uid-12072359-id-2960969.html

Differences between SSL and SSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.