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 Message-Id: <5.1.0.14.2.20020722183927.02de6e30@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Mon, 22 Jul 2002 18:44:40 -0700 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: RE: running sshd with a different port than 22 In-Reply-To: References: <147893441631 DOT 20020722204854 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Winston, % type -a netstat netstat is /cygdrive/d/WINNT/system32/netstat % netstat /help Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the -s option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current configuration information once. There's no way that I can see to tie port number to the process ID of the process that's using it. Randall Schulz Mountain View, CA USA At 14:13 2002-07-22, Winston Gutkowski wrote: >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 -- 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/