I want to connect from my computer to a remote computer using a middle server(u port forwarding). I run this command on remote computer:ssh -R 9300:localhost:22 user@middleserverand this one on my system:ssh remoteuser@middelserver -p 9300But I get this error on my system:ssh_exchange_identification: Connection closed by remote hostthis is the log of remote computer:debug1: client_request_forwarded_tcpip: listen localhost port 9309, originator xxx.xxx.xx.xx port 21470debug2: fd 7 setting O_NONBLOCKdebug1: connect_next: host localhost ([::1]:22) in progress, fd=7debug2: fd 7 setting TCP_NODELAYdebug3: fd 7 is O_NONBLOCKdebug3: fd 7 is O_NONBLOCKdebug1: channel 1: new [xx.xx.xx.xx]debug1: confirm forwarded-tcpipdebug3: channel 1: waiting for connectiondebug1: channel 1: connection failed: Connection refuseddebug2: fd 8 setting O_NONBLOCKdebug1: connect_next: host localhost ([127.0.0.1]:22) in progress, fd=8debug2: fd 8 setting TCP_NODELAYdebug3: channel 1: waiting for connectiondebug1: channel 1: connection failed: Connection refusedconnect_to localhost port 22: failed.debug2: channel 1: zombiedebug2: channel 1: garbage collectingdebug1: channel 1: free: xxx.xxx.xxx.xxx, nchannels 2debug3: channel 1: status: The following connections are open:  #0 client-session (t4 r2 i0/0 o0/0 fd 4/5 cc -1)What's the problem?
SSH tunneling: connect_to localhost port 22: failed
ubuntu;ssh;fedora