I had trouble with the update to 4.3. /usr/sbin/sshd -d -D is telling me some other process is using port 22 and cant bind to it. How do I tell what program that is and stop it? Thanks, Jerry
On Wed, Mar 22, 2006 at 11:30:47PM -0500, Jerry Geis wrote:> I had trouble with the update to 4.3. > > /usr/sbin/sshd -d -D is telling me some other process is > using port 22 and cant bind to it. > > How do I tell what program that is and stop it?# netstat -tupan | grep 22 Ray
>On Wed, Mar 22, 2006 at 11:30:47PM -0500, Jerry Geis wrote: >>/ I had trouble with the update to 4.3./>>/ />>/ /usr/sbin/sshd -d -D is telling me some other process is />>/ using port 22 and cant bind to it. />>/ />>/ How do I tell what program that is and stop it?> /># netstat -tupan | grep 22Ray, THanks for the reply. This does not output anything on port 22??? It has process numbers with 22 in it but the ports were like :111 and something else... No 22. What might be stopping sshd from working. debug1: sshd version OpenSSH_3.9p1 debug1: private host key: #0 type 0 RSA1 debug1: read PEM private key done: type RSA debug1: private host key: #1 type 1 RSA debug1: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA debug1: rexec_argv[0]=''/usr/sbin/sshd'' debug1: rexec_argv[1]=''-e'' debug1: rexec_argv[2]=''-d'' debug1: Bind to port 22 on ::. Server listening on :: port 22. debug1: Bind to port 22 on 0.0.0.0. Bind to port 22 on 0.0.0.0 failed: Address already in use. Generating 768 bit RSA key. RSA key generation complete. debug1: Server will not fork when running in debugging mode. debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 As you can see it wont bind to the port??? If sshd does not startup would that affect httpd also? THanks, Jerry
On 3/22/06, Jerry Geis <geisj@pagestation.com> wrote:> >On Wed, Mar 22, 2006 at 11:30:47PM -0500, Jerry Geis wrote: > >>/ I had trouble with the update to 4.3. > />>/ > />>/ /usr/sbin/sshd -d -D is telling me some other process is > />>/ using port 22 and cant bind to it. > />>/ > />>/ How do I tell what program that is and stop it?> > / > ># netstat -tupan | grep 22 >I don''t know whether you''ll get different results or not, but I would use lsof -i HTH, -- Collins Richey If you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for.
Jerry Geis wrote:> I had trouble with the update to 4.3. > > How do I tell what program that is and stop it? >Personal favorite way: # /sbin/fuser -v 22/tcp -- Alan Sparks, UNIX/Linux Systems Integration and Administration <asparks@doublesparks.net>
On Wed, 2006-03-22 at 23:30 -0500, Jerry Geis wrote:> I had trouble with the update to 4.3. > > /usr/sbin/sshd -d -D is telling me some other process is > using port 22 and cant bind to it. > > How do I tell what program that is and stop it?lsof -i :22 -- Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> http://centos.ivazquez.net/ gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://lists.centos.org/pipermail/centos/attachments/20060323/5566e1b6/attachment.bin
>Jerry Geis wrote: >>/ I had trouble with the update to 4.3./>>/ />>/ How do I tell what program that is and stop it? />>/ />Personal favorite way:># /sbin/fuser -v 22/tcpLooks like there really is no port conflict - my laptop does the same thing and the commands suggested return no program using the port on my desktop (messed up box). It works on my laptop with sshd running. Actuall sshd does RUN. however when I try to connect it is saying "connection closed". I have ran system-config-securitylevel and have ssh enabled. I have rebooted... I cannot get sshd to allow me to connect. httpd still wont start. I see no entries in messages other than httpd failed. I dont know what else to do/try. THanks for any suggestion. Jerry
On Thu, Mar 23, 2006 at 12:42:27AM -0500, Jerry Geis wrote:> >Jerry Geis wrote: > >>/ I had trouble with the update to 4.3. > />>/ > />>/ How do I tell what program that is and stop it? > />>/ > />Personal favorite way: > ># /sbin/fuser -v 22/tcp > > Looks like there really is no port conflict - my laptop does the same thing > and the commands suggested return no program using the port on my desktop > (messed up box). > It works on my laptop with sshd running. > > Actuall sshd does RUN. however when I try to connect it is saying > "connection closed". > I have ran system-config-securitylevel and have ssh enabled. I have > rebooted... > > I cannot get sshd to allow me to connect. > > httpd still wont start. I see no entries in messages other than httpd > failed. > > I dont know what else to do/try. THanks for any suggestion.Is this something SELinux could be causing? It generally annoys me so I turn it off :) Ray
Have you updated glibc too? netstat -tunp | grep 22 should tell which process is using port 22, also try: netstat -tunl | grep 22 to see if someone is listening in port 22 After I updated to latest openssh, I got the same message in /var/log/secure, but none process was using port 22. But, I still can login via ssh: # tail /var/log/secure Mar 23 04:05:53 mpl sshd[17969]: Server listening on :: port 22. Mar 23 04:05:53 mpl sshd[17969]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. # ssh localhost root@localhost''s password: .... Will try rebooting the server .. HTH Oliver Jerry Geis wrote:> I had trouble with the update to 4.3. > > /usr/sbin/sshd -d -D is telling me some other process is > using port 22 and cant bind to it. > > How do I tell what program that is and stop it? > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos-- Oliver Schulze L. <oliver@samera.com.py>
Jerry Geis wrote on Thu, 23 Mar 2006 00:42:27 -0500:> Looks like there really is no port conflict - my laptop does the same thingJerry, it''s normal for CentOS, nothing to worry. I asked about this last year as well ;-) Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com