Recently configured CEpH distributed storage. You need to log on via SSH without a password. After checking some information, record it here (My centos system demonstration here ).
First, enter the shell command on the system terminal:
[Root @ PS-12 CEpH] # ssh-keygen-T RSA
(Suggestion: After you press enter, all are default. Do not enter the password. Press enter all the time .)
The default value is ~ /. Generate two files in the SSH directory:Id_rsa (Private Key ),Id_rsa.pub (Public Key ).
Copy id_rsa.pub to the login server as the authentication file:
[Root @ PS-12 CEpH] # SCP ~ /. Ssh/id_rsa.pub root @ PS-13 :~ /. Ssh/authorized_keys
Then, grant the. SSH and authorized_keys permissions:
Chmod 700 ~ /. SSHChmod 600 ~ /. Ssh/authorized_keys
Test:
In this case, restart SSH:
#/Etc/init. d/sshd restart
Login Server:
# SSH PS-13
To log on for the first time, you must configure the kown_hosts file. You may need to confirm yes. Then you can log on directly.