[CoLoCo] ssh but kind of a mac question so please forgive
David Overcash
funnylookinhat at gmail.com
Wed Sep 24 17:48:28 BST 2008
Or possibly try creating a directory for your "root" user... I'm not sure
what that user account is called by default on a mac, probably just root.
So on a mac that would be making your .ssh at /Users/root/.ssh
Then throw all of your keys into there?
-David
On Wed, Sep 24, 2008 at 8:21 AM, Kevin Fries <kfries at cctus.com> wrote:
> > 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
>
> --
> Ubuntu-us-co mailing list
> Ubuntu-us-co at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20080924/0d068436/attachment.htm
More information about the Ubuntu-us-co
mailing list