How to close a SSH connection from a BAT file

Sylvain Richard sr75pro@free.fr
Tue Aug 21 08:09:00 GMT 2007


Anthony de Sousa wrote:
> the next time that net start ssh is issued the following 
> errors are in the log
> bind: Address already in use
> channel_setup_fwd_listener: cannot listen to port: 139
> Could not request local forwarding
Re your port 139 problem, see:

http://www.blisstonia.com/eolson/notes/smboverssh.php


You can check that port 139 is owned by your ssh client by using:
netstat -ano
tasklist /svc
or (more easily):
netstat -abn

Some webpages suggest stopping the "server" process but then you'd lose 
the shares hosted by your client machines.

Best of luck

Sylvain

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list