SSH Port forwarding when "PermitRootLogin"==no ?

Pollywog lists-fbsd at shadypond.com
Mon Oct 27 10:41:46 PDT 2008


On Monday 27 October 2008 17:04:46 Kevin Kinsey wrote:
> Hello,
>
> I'm (still) trying to work around a limitation I've encountered
> with a new service provider (cf. "MTA on non-standard port").
>
> As root:
>  # ssh -L 24:server:52525 server
>
>    fails because root logins aren't permitted in
> /etc/sshd_config on the server.
>
> Also as root:
>  # ssh -L 24:server:52525 user at server
>
> fails - an terminal session is established, but
> when I telnet localhost:24 I receive this in the
> terminal:
>
> channel 3: open failed: administratively prohibited: open failed
>
> I was kinda under the impression this should work, since
> the port on the remote server is a dynamic port.
>
> Any suggestions how I might get this to work?

I have the same problem with my ISP blocking port 25 inbound and outbound, so 
I use a DNS provider that will relay my email (email for a domain) to me on an 
alternate port.  I don't recall how much this costs me but it is around $40 
yearly.



More information about the freebsd-questions mailing list