[CoLoCo] ssh but kind of a mac question so please forgive
Kevin Fries
kfries at cctus.com
Wed Sep 24 15:21:41 BST 2008
> ssh -D 8080 -p 5151 user at host.com
>
> It connects just fine and pulls in the private key from .ssh, asks for the
> key's password and then authenticates. This works. However, when I do
>
> sudo ssh -D 80 -p 5151 user at host.com
>
> It asks for the sudo password (have to use sudo for privileged ports)
> then tries to make the connection but returns an error about permission
> denied. Is there any reason why using sudo would prevent it from using
> the proper key? It doesn't even prompt for the key's password. I also tried
> using
When you are doing the SSH command from the command line, it is pulling your RSA key. When you sudo the command, it is pulling the "root" user's RSA key. Try issuing a "sudo -i" command to become root. Set your private keys up again as root. Then exit root user mode. Finally try your "sudo ssh..." command again and see if it works.
Kevin Fries
More information about the Ubuntu-us-co
mailing list