Re: error: bind: Address already in use



Doesnt Compute <doesntcompute2k@xxxxxxxxx> wrote:
I checked that. Moved from (old) HP SSHD to current version and
wanted to make sure the old was dead and gone.

It (or something like it) is still there. That's why port 22 is still
in use.

The issue it seems is related to the desktop application (Genaro
Desktop Client program) having issues specifying a port or trying too.
Putty works fine, Genaro using part of the callable putty routines has
the issue.

Hmm? Putty is a client. You're asking about sshd (a server). I don't
understand the connection.

In case anyone knows of some magic to get rid of this...I'm checking
out all info I can get on this desktop app and trying to work that
angle.

Four lines of (extra, useless) logging every time someone logs in is
not going to "kill us," but sure is annoying. LOL

What lines are you talking about, the "Address already in use"? Why is
something trying to start an sshd process every time someone logs in?

FYI:

#
# netstat -n | grep "\.22" | tr -s ' ' | tr ' ' ','
tcp,0,0,10.1.2.10.22,10.6.3.218.2638,ESTABLISHED
tcp,0,0,10.1.2.10.22,10.3.3.79.3053,ESTABLISHED
tcp,0,0,10.1.2.10.22,10.4.3.149.2762,ESTABLISHED
tcp,0,0,*.22,*.*,LISTEN
#
#
#
# lsof -i:22
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 1090 root 3u IPv4 0x6e69e640 0t0 TCP *:ssh (LISTEN)

There you go. PID 1090 is a running sshd, listening on port 22. You
can't run another sshd and listen on the same port or you'll get the
"address already in use" message, and the launched server will exit.

# ps -fp1090 | tr -s ' '
UID PID PPID C STIME TTY TIME CMD
root 1090 1 0.0 Aug 21 ?? 0:04.24 /usr/local/sbin/sshd -4 -f /usr/
local/etc/sshd_config

Same process. That's what you were trying to run, but presumably it's
already running. Only one can listen to a port at a time.

--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.



Relevant Pages

  • Re: sshd blocking ftp data port 20?
    ... something listening that looks like sshd. ... If you want to see which process is using the port try ... > The sshd configuration file points to port 22 as is normal. ... > strange is the netstat output where there is no indication of ports 20 ...
    (comp.security.ssh)
  • Re: closing port 1025
    ... Active Connections ... Proto Local Address Foreign Address State PID ... So you know that the PID for the process listening on ... one of these services is listening on port 1025 ...
    (microsoft.public.windowsxp.security_admin)
  • Re: OWA stopped working.
    ... Note the PID for the process that is listening on port 80, ... And look for that PID, ... > email system is working from the Outlook client. ...
    (microsoft.public.windows.server.sbs)
  • How did this happen?
    ... May 12 06:50:43 localhost sshd: Failed password for illegal user ... cgi from 212.93.149.205 port 2265 ... Starting sshd: ...
    (comp.os.linux.security)
  • Re: closing port 1025
    ... this service was listening on port 1025 all the time! ... >>Proto Local Address Foreign Address State PID ... >>EventSystem,helpsvc, lanmanserver, ...
    (microsoft.public.windowsxp.security_admin)