| Forum Home > Unix Learnings > Password less ssh not working | ||
|---|---|---|
|
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 | |
--
| ||
|
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: Agent admitted failure to sign using the key. [email protected]'s password:
Solution: $ ssh-add ____________________________________________
| |
--
| ||