[NBLUG/talk] OpenSSH2 with public key (no password)

ME dugan at passwall.com
Fri Jul 11 13:11:01 PDT 2003


id_dsa and id_rsa contain v2 ssh keys. These are not what you want (AFAIK.)

if you are running openssh on your local box and the remote machine is
running ssh v1 then do this on your local machine:

$ ssh-keygen -b 2048 -t rsa1
[sample dialog:]
Generating public/private rsa1 key pair.
Enter file in which to save the key (/home/dugan/.ssh/identity):
/home/dugan/.ssh/identity already exists.
Overwrite (y/n)? y
[here you would just press enter for no passphrase:]
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/dugan/.ssh/identity.
Your public key has been saved in /home/dugan/.ssh/identity.pub.
The key fingerprint is:
[omitting fingerprint hex string]

Now do this:
$ scp ~/.ssh/identity.pub username at remote.host:

now ssh to remote host:
$ ssh username at remote.host

If you do not have any other valid keys in your remote machine's
~/.ssh/authorized_keys then do this:
mv ~/.ssh/authorized_keys ~/.ssh/authorized_keys.bad
cat ~/idenity.pub >> ~/.ssh/authorized_keys

HTH,
-ME


[chop]




More information about the talk mailing list