openSUSE Forums > Archives > SF Archives > ARCHIVES - Network/Internet » Can't Release Port Forward On Local Machine

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Network/Internet Questions regarding network or Internet configuration and use in SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-May-2008, 15:36
beavis
Guest
 
Posts: n/a
Default

I'm using "ssh -L" port binding to access my server. I'm binding the "localhost" to port 9999 which then connects to port 80 on my server (ISP blocks ports on me so this is my workaround). All works well unless I don't exit the ssh connection properly (port binding on the local machine apparently doesn't tear down). If I try to reestablish the connection port 9999 is still being bound on my local machine. I can release it by rebooting the local machine or killing sshd and then I can reestablish the connection. Is there a clean way to just unbind this port when I screw up and don't exit the ssh connection properly?
  #2 (permalink)  
Old 18-May-2008, 17:37
ken_yap
Guest
 
Posts: n/a
Default

This reason is probably that you have a forwarded connection still active. Web browsers may hang on to connections if they are using HTTP 1.1. If you cannot or forgot to break the http connection first, what you should do is exit the ssh connection with ~. That will break the connection as well as forwarded connections. If you didn't do that then at least kill ssh (not sshd) with HUP, which will allow it to clean up.
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2