Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Winston Gutkowski" To: "Cygwin" , "Gerrit P. Haase" Subject: RE: running sshd with a different port than 22 Date: Mon, 22 Jul 2002 14:13:21 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <147893441631.20020722204854@familiehaase.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal I am not sure whether it will work on Cygwin, but on Linux/Unix I would try netstat -nvpl to give you a list of processes running on listening ports. You should then be able to use ps to determine what command is running. HIH Winston -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf Of Gerrit P. Haase Sent: Monday, July 22, 2002 11:49 To: cygwin AT cygwin DOT com Subject: Re: running sshd with a different port than 22 Daniel schrieb: > "Gerrit P. Haase" wrote: >> For some reason I want to run the sshd on port 21. >> I invoked "ssh-host-config -p 21" and let the script install >> sshd as a service (I'm on NT4). >> After starting sshd as a service I can connect from the same >> box with: >> $ ssh -p 21 localhost >> Now I tried to connect from a second (remote) box and I get this: >> $ ssh -p 21 server >> Read from socket failed: Connection reset by peer >> I see that it is really running: >> $ telnet server 21 >> Trying 192.168.5.5... >> Connected to server.koeln.convey.de. >> Escape character is '^]'. >> SSH-1.99-OpenSSH_3.4p1 >> Is there some important issue I misunderstood? >> Why is it not possible to connect sshd on port 21? > My guess is maybe because have an FTP server running on your computer which > by default will use port 21. Is it the FTP server associated with cygwin, or > is it a 3rd party one? I am asking because I have had troubles with my > cygwin ftp server lately. I already checked this. AFAICT I have no FTP server running here. This may be an issue at the third box, but IIRC I can ftp to every other FTP server I would like to connect and have a server running at the same box without problems. Since I can start the service and connect from the same box were sshd is running I don't know where to look next... Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/