Re: openssh cygwin: connection closed by remote host
- From: kherring@xxxxxxxxx
- Date: 12 Jul 2006 05:18:55 -0700
Andrew Schulman wrote:
Running ssh -vv or -vvv on the client will give you more information, which
may help to illuminate what happened.
What do the server logs show from this exchange? Did you crank up LogLevel
to VERBOSE or DEBUG in /etc/ssh/sshd_config and restart sshd?
So I have noticed that upon logout from a remote session that the
forked sshd process is not killed. So say after having logged in and
then out 5 complete round trips there will be 6 sshd processes running
on the remote windows box, 1 corresponding to the original and 5 forked
processes from the 5 now closed connections. Could it be that this is
the source of my problems?
I don't see anything in sshd_config that relates to the number of allowed
concurrent connections from one user, but it is strange that those old
processes stay around, and that might be related to your problem.
Also when running sshd in debug mode I was
unable to open a connection, got: will not fork when running in
debugging mode. Should I need to fork on the first and only
connection?
Any time someone logs into the server, it forks off a new process to handle
the new connection. But you misunderstood me: I didn't say to run sshd in
debug mode (sshd -d). I said to set LogLevel to VERBOSE or DEBUG in
/etc/ssh/sshd_config, and restart sshd.
Any thoughts? If this is the problem, is there a way to force the sshd
process for the current connection closed without disturbing the
orignal sshd process? Thanks for any help.
Yes, you can kill the child sshd processes without harming the parent sshd.
Try doing that by hand before you reach 5 leftover processes, and see if
that allows you to keep logging in.
--
To reply by email, change "deadspam.com" to "alumni.utexas.net"
So I did try killing the new sshd processes by hand and it worked. I
can now log in as many times as I want without issue. Also I noticed
that when I start a new connection an sshd process is created with
parent pid = pid of the original sshd process, and also another process
with ppid=1. So two new sshd processes are created per new connection.
And upon logout the process with ppid=1 remains, but the other with
parent equal to the original sshd process goes away. Is this a hint?
If this problem can't be solved directly I'd be interested in hearing a
way in which to kill the child sshd processes upon logout in a clean
manner. The way in which I did it just now causes the remote terminal
to freeze since it is logged in and its sshd process is killed before
logging out. I have shell scripts logging in, doing stuff, and then
logging out, numerous times so i can't really have the term freeze each
time. Any thoughts on a solution or if not a solution for this work
around? Thanks again.
.
- Follow-Ups:
- Re: openssh cygwin: connection closed by remote host
- From: Andrew Schulman
- Re: openssh cygwin: connection closed by remote host
- References:
- openssh cygwin: connection closed by remote host
- From: kherring
- Re: openssh cygwin: connection closed by remote host
- From: René Berber
- Re: openssh cygwin: connection closed by remote host
- From: kherring
- Re: openssh cygwin: connection closed by remote host
- From: Andrew Schulman
- Re: openssh cygwin: connection closed by remote host
- From: kherring
- Re: openssh cygwin: connection closed by remote host
- From: Andrew Schulman
- openssh cygwin: connection closed by remote host
- Prev by Date: Re: openssh cygwin: connection closed by remote host
- Next by Date: Re: Using GnuPG Keys with PuTTY
- Previous by thread: Re: openssh cygwin: connection closed by remote host
- Next by thread: Re: openssh cygwin: connection closed by remote host
- Index(es):
Relevant Pages
|
|