Wednesday, February 12, 2014

SSH without password

SSH Login without password:

Let's say that your machine is A and you want to access machine B without password, here are a few steps:

1- in Machine A write the following command line.

ssh-keygen -t rsa
 
2- Press enter to all prompt questions, no need to type anything. 
 
3- Copy the content of the following file 
 
less /home/A/.ssh/id_rsa.pub 
 
4- Access machine B with ssh and password 
 
ssh user@B....
 
5- Go to .ssh directory in machine B
 
cd .ssh
 
5- Create new file (machine B)
 
nano authorized_key
 
6- past the content of id_rsa.pub into that authorized_key file 

No comments:

Post a Comment