TECH SOLUTIONS

Click here to edit subtitle

Forums

Post Reply
Forum Home > Unix Learnings > Password less ssh not working

Sourav Gulati
Site Owner
Posts: 83

If you have setup password less ssh and its not working. Try the following commands :

$ssh-add

Identity added:

If it works successfully then you password less ssh would start working . However if you get some error like

Could not open a connection to your authentication agent.

Then generate a new pid for ssh-agent as following:

$eval `ssh-agent`

$ssh-add

It will help


--


November 7, 2012 at 4:12 AM Flag Quote & Reply

Anonymous
Member
Posts: 3

http://parvhappy.webs.com/apps/forums/topics/show/7977864-concepts-password-less-ssh


Password Less SSH:

____________________________________________

 

Create a key:

ssh-keygen

 

The key will be placed in ~/.ssh/id_rsa file.

____________________________________________

 

Password Less SSH with Remote Host:

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

$ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

 

It will append the contents of 'id_rsa.pub' to 'authorized_keys" on remote.

____________________________________________

 

Password Less SSH with Self:

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

$ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

$ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

____________________________________________

 

Problem:

ssh [email protected]

Agent admitted failure to sign using the key.

[email protected]'s password:

 

Solution:

$ ssh-add

____________________________________________

 

 

 


--


December 5, 2012 at 2:15 AM Flag Quote & Reply

You must login to post.