[EMAIL PROTECTED] (Herbert Ho) wrote:
>looking in the man page for ssh-add it states that if the identity
>file doesn't exist, then it would create it. but it doesn't.  it keeps
>spitting me a "bad key file" error.
>
>so again, i rashly nuke my .ssh, saving my config this time. =)
>
>and still ssh-add doesn't work. so i try logging out and logging back
>in hoping that it was ssh-agent that was at fault. no luck.
>
>does anyone have any clue what i can do?

How about ssh-keygen?

>also, am i suppose to run ssh-add on the remote server or on my local
>machine?

I run it on the local machine, then ssh seems to be happy.

For reference, the way I normally tell a new account (say [EMAIL PROTECTED])
that I should be able to log in from my primary box ([EMAIL PROTECTED]) without
a password goes something like this:

* [EMAIL PROTECTED] ~]$ ssh-add
  (if necessary)
* [EMAIL PROTECTED] ~]$ ssh [EMAIL PROTECTED]
* [EMAIL PROTECTED] ~]$ ssh [EMAIL PROTECTED]
  (this gets riva's host key into remote's .ssh/known_hosts file)
* log back out of both ssh sessions
* [EMAIL PROTECTED] ~]$ cat .ssh/identity.pub | \
  > ssh remote cat \>\> .ssh/authorized_keys

Once I've done that, everything works smoothly.

HTH,

-- 
Colin Watson                                           [EMAIL PROTECTED]

Reply via email to