1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH port forwarding

Discussion in 'Linux & Open Source' started by Nefarious, 3 Jun 2006.

  1. Nefarious

    Wise Guy

    Joined: 1 Aug 2003

    Posts: 1,050

    I'm trying to arrange a port forward so that someone can access the SSH on the machine through port 80 (the only port for them that's not blocked)

    so far I've deduced that I need to use -L but it keeps telling me I'm using a bad port specification, any help would be gratefully received
  2. DazW


    Joined: 9 Jan 2004

    Posts: 440

    So they can only use port 80?

    Seems to me you need to just make the SSH server listen on port 80.

    ssh -L creates a tunnel, so say, you can goto http://localhost:8080/, and that gets forwarded, via an SSH tunnel, to the host you set the tunnel up too (effectivly sending everything via the ssh server)
  3. hybrid

    Wise Guy

    Joined: 18 Nov 2003

    Posts: 1,312

    Location: Newcastle

    I'd say for this case just change the sshd_config file.