Re: ssh to remote machines using authorized keys

Jon Radel <[email protected]>
Newsgroups gmane.os.freebsd.isp
Message-ID <[email protected]>
lists wrote:
> 
> Hi all
> 
> I have the following situation which I am trying to get around
> 
> I have a need to be able to ssh without_password using rsa keys to 
> authenticate the ssh session.
...
> but when I type
> user prompt  $ ssh [email protected] I get  prompted for a password 
> followed by the error above, which is "Permission denied 
> (publickey,keyboard-interactive,hostbased)"
> 
> Can anyone tell me how to get around this?   Is it possible?

Very possible to get around.  Make sure the private key for root on the 
remote machine is available to the system user on the local machine and 
then specify that file with the -i option to the ssh command.  What is 
almost certainly happening is that your ssh command defaults to the 
private key for system user which is not the same key as your root (your 
e-mail isn't 100% clear to me as to whether you are using the same key 
for the system user and root, but it appears you aren't).

If you're going to do that a lot, you can set a default in 
~systemuser/.ssh/config to specify that all connections to root@remote 
should default to using root's private key.

--Jon Radel
[email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.