[ale] automating ssh script

Ed Landa elanda at xeme.com
Mon Jul 29 08:18:18 EDT 2002


> Getting closer to connecting without a passphrase - thanks, Michael Hirsh. I 
> still failed, though. However, here is the output that you requested, along 

> debug1: authentications that can continue: publickey,password
> debug1: next auth method to try is publickey
> debug1: try privkey: /home/user/.ssh/id_rsa
> debug1: try pubkey: /home/user/.ssh/id_dsa
> debug1: input_userauth_pk_ok: pkalg ssh-dss blen 434 lastkey 0x8086d48 hint 2
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type <unknown>
> Enter passphrase for key '/home/user/.ssh/id_dsa':

> eval `ssh-agent` //run ssh-agent locally
> ssh-add ~/.ssh/identity
> ssh user at shell1.host.com //testing to see if I connect passphraseLESS

You've only added the key 'identity' to the agent, but the server is finding
and using 'id_dsa'.  You need to add all of your keys to the agent.  If
you just run ssh-add without any arguments, it should prompt for each key.

Ed

 PGP signature




More information about the Ale mailing list