Configure the SSH service to log on to the Linux server using the certificate
Common authentication methods for logging on to a Linux server through SSH (Secure Shell) include passwords and certificates. From the security perspective, we recommend
Common linux Services-SSH and ssh public key authentication 1. ssh (secureshell) is installed by default. the package name is openssh, [root @ localhostlogs] yuminstallopenssh & hellip; & common linux Services-SSH and ssh public key authentication 1.
For Linux OPS workers, using SSH remote remote server is no longer familiar! Some of the strict settings for SSH also related to server security maintenance, today, I work in the use of SSH experience, do some summary records to the next. (1) After
The default SSH port number for each CentOS release is 22. To improve security, you need to modify the default SSH port number to prevent the password from being compromised. Some VPS providers may be fined or temporarily terminate services if your
Modify the ssh port in Linux and disable remote root logon.
Modify the ssh port and disable remote root login in Linux
We all know that the default ssh port number is 22. To change the port number to 9688, You need to edit the/etc/ssh/ssh_config and/
The security of the server is self-evident, the first step in server security setting is to block the portal.
For Linux, blocking the entrance, is not allow others to casually into our servers inside the mess, otherwise an order "RM-RF/", the
Address: http://wowubuntu.com/25-ssh-cmd.html
SSH is a great tool. If you want to remotely connect to the server on the internet, SSH is undoubtedly the best candidate. The following are the 25 best SSH commands selected by voting on the Internet.
Change the ssh port and disable root remote logon in Linux
We all know that the default ssh port number is 22. To change the port number to 9688, You need to edit the/etc/ssh/ssh_config and/etc/ssh/sshd_config files;
To disable remote root logon,
Linux Server:centos 6.2
Desktop system Environment: Windows 7
Connection tool: Putty
1. Modify SSH configuration file
Vi/etc/ssh/sshd_config Modify port, disable root login, add limit user
The code is as follows
Copy Code
Modify the ssh port and centosssh port of centosVi/etc/ssh/sshd_configFind the section # Port 22, which indicates that Port 22 is used by default, and add a line as follows:Port 34981
Save and exit
Then the service sshd restart
Note: Do not turn it
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.