Ubuntu 10.10 remote online server: SSH

Source: Internet
Author: User
From the client perspective, SSH provides two levels of security authentication. Level 1 (password-based security verification) you can log on to the remote host as long as you know your account and password. All transmitted data is encrypted, but it cannot be guaranteed that the server you are connecting to is the server you want to connect. Other servers may pretend to be real servers, that is, being attacked by man-in-the-middle. The second level (key-based security verification) depends on the key, that is, you must create a pair of keys for yourself and put the public key on the server to be accessed.

From the client perspective, SSH provides two levels of security authentication.

Level 1 (password-based security verification) you can log on to the remote host as long as you know your account and password. All transmitted data is encrypted, but it cannot be guaranteed that the server you are connecting to is the server you want to connect. Other servers may pretend to be real servers, that is, being attacked by man-in-the-middle.

The second level (key-based security verification) depends on the key, that is, you must create a pair of keys for yourself and put the public key on the server to be accessed. If you want to connect to the SSH server, the client software will send a request to the server, requesting your key for security verification. After receiving the request, the server first looks for your public key in the home directory of the server, and then compares it with the public key you sent. If the two keys are consistent, the server uses the public key to encrypt the challenge and send it to the client software. After the client software receives a question, it can use your private key to decrypt it and then send it to the server.

In this way, you must know your key password. However, compared with the first level, the second level does not need to transmit passwords over the network.

The second level not only encrypts all transmitted data, but also the "man-in-the-middle" attack method is impossible (because he does not have your private key ). Www.linuxidc.com, but the entire logon process may take 10 seconds.

Installation Process:

1. server configuration: by default, sshd has been installed on Ubuntu. You only need to configure it./etc/ssh/sshd_config

2. Client:

In Windows, I use SSH Secure Shell Client 3.2.9 (or putty)

Without installation in Ubuntu, you can directly use ssh

-----------------------------------------------------------

The first connection opportunity generates a public key file on the client :~ /. Ssh/know_host

Security:

Set/etc/ssh/sshd_config:

Cancel root login: PermitRootLogin no

The password PermitEmptyPasswords no is not allowed.

Logon to a user or group is not allowed: DenyUsers and DenyGroups.

/Etc/hosts. allow (deny)

Iptables

If the server system changes, the difference between the public key and the record will lead to an error. Delete the original file.

File Transfer Function:

Sftp can effectively replace ftp, use command lines, or use fillzilla or other software. As shown in the figure on the right, the first time you are prompted to create a key cache file.

Log on to the command line and graphical interface in Windows

Ubuntu online interface

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.