Thursday, June 14, 2007

SSH with out password

How to set SSH with out password?

Type in Ur console ?

ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/brijesh/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/brijesh/.ssh/id_rsa.
Your public key has been saved in /home/brijesh/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

ssh brijesh1@localhost mkdir -p .ssh

Create directory
cat .ssh/id_rsa.pub | ssh brijesh1@brijesh 'cat >> .ssh/authorized_keys'
brijesh1@brijesh's password:


From now on you can log into Bijesh1 as brijesh1 from brijesh as a without password:

No comments:

Post a Comment

Powered By Blogger