Im running OS X 10.0.4 and Im trying (unsuccessfully) to have my imap traffic tunnelled through ssh. Ive been able to do this successfully for some time under OS 8.6 and also under 10.0.x using the classic app MacSSH. But when I tried to do the ssh tunneling with OpenSSH from the command line,
me% ssh -L 143:mail.server.dom:143 mail.server.dom
I got the following message:
Privileged ports can only be forwarded by root.
So then I tried to do the same ssh connection using sudo:
me%sudo -L 143:mail.server.dom:143 mail.server.dom
And it now allows the ssh connection. However, on launching my email app, it complains that it cant connect to the mail server.
Im only guessing here, but is the problem with my last attempt the fact that each user on a multiuser system (like OS X) has their own set of tcp ports, and therefore I opened an ssh tunnel for the root users port 143, and not for my own accounts port?
Anyway does anyone know a work around for this problem? I would prefer to use OpenSSH over MacSSH because I dont want to have to launch classic every time I want to check my email.
me% ssh -L 143:mail.server.dom:143 mail.server.dom
I got the following message:
Privileged ports can only be forwarded by root.
So then I tried to do the same ssh connection using sudo:
me%sudo -L 143:mail.server.dom:143 mail.server.dom
And it now allows the ssh connection. However, on launching my email app, it complains that it cant connect to the mail server.
Im only guessing here, but is the problem with my last attempt the fact that each user on a multiuser system (like OS X) has their own set of tcp ports, and therefore I opened an ssh tunnel for the root users port 143, and not for my own accounts port?
Anyway does anyone know a work around for this problem? I would prefer to use OpenSSH over MacSSH because I dont want to have to launch classic every time I want to check my email.