Reverse ssh tunnel connection refused

E.M.H.K. KUMARASINGHE 20 Reputation points
2024-02-17T02:52:05.3533333+00:00

Hi i'm trying to create a reverse ssh tunnel to access one of my local webservers through my Azure vm using the command

ssh -N -R localhost:5555:127.0.0.1:80 user@172.x.x.x

but when i type the vm's ip on another pc followed with port 5555 it refuses the connection i did a nmap scan and following is the resultUser's image

port 5555 is marked as closed. I already added firewall rules to open any in bound or out bound connection to be allowed on port 5555

what could be the issue?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
{count} votes

Accepted answer
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-02-17T03:25:56.8633333+00:00

    Would you please check the SSH server configuration file and make sure GatewayPorts is set to yes.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.