Re: remote port forwarding unstable



Hey,

How do you close the console? And, can you share the command with the
list please.

For some reason replying on this list does so to the sender and not to
the list by default. So the list didn't receive the reply you did.

Quintin Beukes



On Tue, Oct 20, 2009 at 7:53 AM, Adriana Rodean <adrya1984@xxxxxxxxx> wrote:
Hi,

Here is some more info after little investigation :)

Message i get is: "Warning: remote port forwarding failed for listen port 1026"

SSH makes connection but port isn't opened and in server logs i see:

IPP-Linux:~# cat /var/log/auth.log | grep 18722
Oct 19 13:37:20 IPP-Linux sshd[18722]: error: bind: Address already in use
Oct 19 13:37:20 IPP-Linux sshd[18722]: error:
channel_setup_fwd_listener: cannot listen to port: 1026
IPP-Linux:~# cat /var/log/auth.log | grep 18737
Oct 19 13:37:47 IPP-Linux sshd[18737]: error: bind: Address already in use
Oct 19 13:37:47 IPP-Linux sshd[18737]: error:
channel_setup_fwd_listener: cannot listen to port: 1026

But i closed the previous console with ssh listening to that port, and
is no ssh process on client when i want to connect again on the same
port.  So how come it still says that port is in use on server?

This happens in only 2% of the cases, very rare, i change nothing in
the way i connect or close the client, but somehow it seems that port
still hangs on server after closing ssh console ... or at least that's
what sshd says because with "netstat -an" i don't see that port busy

Thank you Rabbi for that command, next time when it happens i'll use it :)

Thanks,
Adriana




Relevant Pages

  • Re: using a remote IMAP server and smarthost
    ... I have set up the alias for ssh, and created a key for authentication. ... You can forward a local port via ssh like this: ... This command establishes an ssh connection to myvm. ...
    (Debian-User)
  • Re: SSH options re: NAT
    ... No, SSH is two-fold, a call to it on the client side results in a call ... port, meaning that any connections that come into that port are answered ... programming practice for daemons) Once the connection is established, ... don't want to execute a command on the remote side and you use -N. ...
    (comp.security.ssh)
  • Re: executing commands from telnet from D3
    ... "Would the ssh command on the remote linux box allow me to get to the ... your user on the linux box would have to first log ... to port 4444/tcp. ...
    (comp.databases.pick)
  • Re: Creating dynamic tunnels using bash script (cygwin/solaris)
    ... ssh solaris "command to figure out what port you want" ...
    (comp.security.ssh)
  • Re: using a remote IMAP server and smarthost
    ... I have set up the alias for ssh, and created a key for authentication. ... You can forward a local port via ssh like this: ... This command establishes an ssh connection to myvm. ...
    (Debian-User)