For a particular user
/home/username/.ssh ( go to this directory if that directory does not exists create one with name .ssh )
The key generated for password less login is user specific. So create separate keys for each user.
Goto .ssh directory
ssh-keygen -t rsa (give that command and click next next as usual :) )
It will generate id_rsa and id_rsa.pub two files
one is private key and another is public key
now append the contents of id_rsa.pub to file authorized_keys in the system you want to connect
the file authorized_keys will be in .ssh directory of the other system if that file is not there create it.
cat id_rsa.pub >> ~/.ssh/authorized_keys
now try user@192.168.1.2 ( if 192.168.1.2 is the system you want to connect without password)
/home/username/.ssh ( go to this directory if that directory does not exists create one with name .ssh )
The key generated for password less login is user specific. So create separate keys for each user.
Goto .ssh directory
ssh-keygen -t rsa (give that command and click next next as usual :) )
It will generate id_rsa and id_rsa.pub two files
one is private key and another is public key
now append the contents of id_rsa.pub to file authorized_keys in the system you want to connect
the file authorized_keys will be in .ssh directory of the other system if that file is not there create it.
cat id_rsa.pub >> ~/.ssh/authorized_keys
now try user@192.168.1.2 ( if 192.168.1.2 is the system you want to connect without password)
No comments:
Post a Comment