Mailinglist Archive: opensuse (929 mails)
| < Previous | Next > |
Re: [opensuse] ssh passwordless/key problem linux to freebsd
- From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 Aug 2011 15:21:34 -0500
- Message-id: <4E4AD14E.9050507@suddenlinkmail.com>
On 08/15/2011 03:43 PM, James D. Parra wrote:
James,
I have always done the following and it works fine:
Local Box (client):
(1) create the keys you need with 'ssh-keygen -t dsa'. (just hit return for empty passwords) That will create id_dsa and id_dsa.pub in ~/.ssh by default. Give the id_dsa.pub key a usable name used when you copy it over to the remote box: (i.e. cp id_dsa.pub id_dsa.pub.$HOSTNAME)
(2) rsync your key with the usable name to the remote box:
rsync -uav ~/.ssh/id_dsa.pub.$HOSTNAME) remote.host.tld:~/.ssh
Remote Box:
(3) ssh into the remote box and append the new usable key to ~/.ssh/authorized_keys i.e.:
cat ~/.ssh/id_dsa.pub.$HOSTNAME) >> ~/.ssh/authorized_keys
** you could just do this step from the Local Box with:
ssh remote.host 'cat ~/.ssh/id_dsa.pub.$HOSTNAME) >> ~/.ssh/authorized_keys'
Don't forget to use the '>>' instead of a '>' much cussing...
You should be able to then log in from Local to Remote without a password.
Dunno why that wouldn't work for freebsd??
--
David C. Rankin, J.D.,P.E.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Hello,
I generated an ssh key on a Linux server and pushed the public key to the
remote server's authorized_keys files with the following command;
ssh-copy-id -i ~/.ssh/linux_server.pub freebsd-server
...however a password is still being requested when logging in to the remote
bsd server. Once on the remote server I can see the key for the linux server in
the authorized_keys file.
Any suggestions to resolve the password request?
Thank you in advance.
James
James,
I have always done the following and it works fine:
Local Box (client):
(1) create the keys you need with 'ssh-keygen -t dsa'. (just hit return for empty passwords) That will create id_dsa and id_dsa.pub in ~/.ssh by default. Give the id_dsa.pub key a usable name used when you copy it over to the remote box: (i.e. cp id_dsa.pub id_dsa.pub.$HOSTNAME)
(2) rsync your key with the usable name to the remote box:
rsync -uav ~/.ssh/id_dsa.pub.$HOSTNAME) remote.host.tld:~/.ssh
Remote Box:
(3) ssh into the remote box and append the new usable key to ~/.ssh/authorized_keys i.e.:
cat ~/.ssh/id_dsa.pub.$HOSTNAME) >> ~/.ssh/authorized_keys
** you could just do this step from the Local Box with:
ssh remote.host 'cat ~/.ssh/id_dsa.pub.$HOSTNAME) >> ~/.ssh/authorized_keys'
Don't forget to use the '>>' instead of a '>' much cussing...
You should be able to then log in from Local to Remote without a password.
Dunno why that wouldn't work for freebsd??
--
David C. Rankin, J.D.,P.E.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |