In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to do SSH remote login in CentOS7 server, the content is very detailed, interested friends can use it for reference, hope to be helpful to you.
Many hacker software will automatically scan an important default port and try to log in if it is found to be open. You usually try to log in using your root account. If you happen to use a weak password, the server can be easily compromised.
Therefore, the port is generally modified to between 1024 and 65535 and cannot conflict with other ports in use. And disable root remote login, log in with a normal account, then switch to the root user, or use the sudo command.
Add new ordinary users
Useradd foo / / create user passwd foo / / change password
Give ROOT permissions to ordinary users
Vim / etc/sudoers
Add the following code
Root ALL= (ALL) ALL / / original code foo ALL= (ALL) ALL / / add code
The remote login port defaults to 22.
Vim / etc/ssh/sshd_config
Modify
# Port 22Port 34567 / / modify port number PermitRootLogin no / / prohibit root users from logging in
Restart ssh
Systemctl restart sshd on the CentOS7 server on how to do SSH remote login to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.