In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
OpenSSH is a free and open source implementation of the SSH (Secure SHell) protocol. The SSH protocol family can be used for remote control or for transferring files between computers. The traditional ways to achieve this function, such as telnet (Terminal Emulation Protocol), rcp ftp, rlogin, rsh are extremely insecure, and will use plaintext to transmit passwords. OpenSSH provides server-side daemons and client-side tools to encrypt data during remote controls and file transfers, thus replacing the original similar services.
In this lab, we will turn on two virtual machines, one as a server (rh7-1) and one as a client (rh7-2), and connect remotely using xshell.
First edit the configuration file for the sshd service:
Rh7-1 server:
Turn on the disable administrator login feature
Adding a user who is allowed to log in is zhangsan,lisi
Add the two zhangsan,lisi users:
Add zhangsan users to the wheel group, and users in the wheel group can switch to root:
Restart the sshd service (because the default sshd service is enabled):
Rh7-2 client:
Root users cannot log in remotely:
Zhangsan users can log in remotely and switch to root:
Lisi users can log in remotely and cannot switch to root:
Rh7-1 server:
Edit the configuration file:
Enable key pair authentication:
Restart the service:
Rh7-2 client:
Create a cyq user:
Cyq users create key pairs:
Change to the / home directory to view the key pair:
Cyq users upload the public key to the server:
Zhangsan remote login server:
Log in without a password:
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.