List of articles
- Two sets of Linux Password free login
- #1 Environmental Science
- #2 demand
- #3 Start
- #3.1 Install the necessary plug-ins
- #3.2 To configure
Two sets of Linux Password free login
#1 Environmental Science
Ubuntu 16.04
#2 demand
- Realize two Ubuntu Virtual machine password free login
#3 Start
#3.1 Install the necessary plug-ins
sudo apt-get install openssh-server
#3.2 To configure
My two Ubuntu The situation of the machine is as follows :
master 192.168.3.230
slave 192.168.3.231
- stay master To configure ssh
Enter all the way , Don't enter the password !!!
ssh-keygen -t rsa
2. take master Copy the public key of to slave
# ssh-copy-id [email protected]
ssh-copy-id [email protected]
# root Is the user name of the remote server , That is, the user name on the remote machine .
Be careful :
- stay liunx In the environment , To copy a public key or private key , Do not use vim Wait for the editor to open the file to copy and paste ; Because it will produce an unnecessary return .
- appear bash: ssh-copy-id [email protected]: command not found. It's not installed ssh-copy-id command ; Carry out orders :
sudo yum -y install openssh-clients
3. Verify success
ssh [email protected]
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .