I've recently stopped using passwords for SSH, instead preferring to distribute keys to ~/.ssh/authorized_keys file for the various machines I need access to.
However, you need to be root to forward a port such as 80, which I want to do to get into my server's MythWeb interface. Unfortunately
Code:
ssh me.myvnc.com -L 80:localhost:80
gets us "Privileged ports can only be forwarded by root." as we'd expect. So we can try
Code:
sudo ssh me.myvnc.com -L 80:localhost:80
At this point I'm prompted for my password. This results in "Permission denied (publickey)."
Of course, root doesn't have a publickey set up on the remote server!
But Ubuntu also doesn't have a root user! So how does one get around this - do you have to create a root user and generate keys? That doesn't seem ideal since root doesn't exist on Ubuntu for security reasons as I understand things. Thanks!
Bookmarks