Machin A is my local pc.
Machine B is my remote vps pc,its ip is vps_ip.
Step 1: Create Authentication SSH-Kegen Keys on machine A
ssh-keygen -t rsa -P ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):/root/.ssh/myvps
Your identification has been saved in /root/.ssh/myvps.
Your public key has been saved in /root/.ssh/myvps.pub.
Step2 Upload Generated Public Keys to machine B
scp /root/.ssh/myvps.pub
root@vps_ip:/root/.ssh/authorized_keys
To login machine B with "ssh root@vps_ip" and execute
chmod 600 /root/.ssh/authorized_keys
To exit from machine B and relogin from machine A.
ssh root@vps_ip can't login without password ,why?