Linux-Learning Note two

Source: Internet
Author: User
Tags ssh config asymmetric encryption

Section Fourth: SSH config command explanation

1) config in order to facilitate our batch management of multiple SSH

2) config stored in ~/.ssh/config

3) SSH config syntax keyword

Host---alias HostName---hostname port---Ports user-----username identityfile-----Key File path

The default port for the SSH protocol is 43, and the default port for the HTTP protocol is 80,HTTPS protocol.

Problems encountered during the learning process:

In the input CD ~/.ssh/hint ' no such filename '

Solution: SSH localhost (use SSH login under root user)

SSH Secure Password-free login: SSH key

1) SSH key generates public and private keys using asymmetric encryption

2) The private key is placed in the local ~/.ssh directory

3) The public key can be exposed externally and placed on the server ~/.ssh/authorized_keys

How does the Linux platform generate SSH keys?

SSH-KEYGEN-T RSA

Ssh-keygen-t DSA

How does the Windows platform generate SSH keys?

Using Xshell

SSH Secure Port

Port security refers to trying to avoid the remote connection port of the server is known to the Rogue, to change the default service port number operation;

How do I change the SSH service port?

Modifying the/etc/ssh/sshd_config configuration

Linux-Learning Note two

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.