LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access port 80 via SSH (https://www.linuxquestions.org/questions/linux-newbie-8/access-port-80-via-ssh-4175736635/)

Jason.nix 05-02-2024 05:24 AM

Access port 80 via SSH
 
Hello,
On a server, the GitLab server is running on port 80. The SSH service is available over the Internet, but port 80 is only available for the internal network. Is there a way to access port 80 via SSH to the server?

Thank you.

pan64 05-02-2024 05:41 AM

I don't understand this question. when you ssh into anywhere you can specify the port you want to connect to. when you start an sshd you can specify the port to listen to.

Turbocapitalist 05-02-2024 05:46 AM

You can multiplex HTTP and SSH over the same port using the sslh multiplexer. It won't hide anything for you but it will allow you to share the one port between two or more different protocols.

michaelk 05-02-2024 07:00 AM

You can use ssh local port forwarding.

JJJCR 05-02-2024 09:57 PM

try this: on your local server
ssh -L 80:remote_server_ip:22 user@remote_server_ip


All times are GMT -5. The time now is 06:26 AM.