On 08/15/2011 02:48 PM, Hans Witvliet wrote:
On Mon, 2011-08-15 at 13:43 -0700, James D. Parra wrote:
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?
afaicr you have to restart the receiving server, as the authorized keys will only be read during server-startup. Not true. I just did "ssh-copy-id" to my home system. It previously had always required that I enter my home password. After copying my public key to ~/.ssh/authorized_keys and no restart of the remote sshd server, I was able to login without a password. On bsd-servers, you might want to check the file permissions: if it is too wide, they might not be accepted.
Other suggestion, open a shell with ssh, and open the authorized_keys with vi. If you have a second shell open you can try insert the key with cut-and-past.
hw Check /etc/ssh/sshd_config on the receiving server for the values of
PubkeyAuthentication yes ('no' here will prevent passwordless login) AuthorizedKeysFile %h/.ssh/authorized_keys Jim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org