0

I try to set up a connection as follows:

ssh -f -N -L 5916:localhost:22 [email protected]
[email protected]'s password: 

It asks for a password , but the connection doesn't work.

nmap my.remote.ip -p 5916

Host is up (0.0038s latency).

PORT     STATE  SERVICE
5916/tcp closed unknown

In virtual machine ssh is working:

ssh  [email protected]
[email protected]'s password: 
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-69-generic x86_64)

I have disabled firewall on host for test.

The tunnel work more or less, but only for localhost:

 ssh developer@localhost -p 5916
developer@localhost's password: 
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-69-generic x86_64)

This is the response from the virtual machine.

What am I missing?

Dominique
  • 1,993
  • 9
  • 30
  • 65
grek
  • 1

0 Answers0