Results 1 to 6 of 6
I recently installed OpenSSH 3.6.1p1 on my box.
When I ssh into the machine and hit control-c it
closes my ssh session. Is this a feature of sshd
or something ...
- 04-16-2003 #1Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
OpenSSH_3.6.1p1 and CTL-C
I recently installed OpenSSH 3.6.1p1 on my box.
When I ssh into the machine and hit control-c it
closes my ssh session. Is this a feature of sshd
or something else? I would like to disable it.
- 04-16-2003 #2Linux Newbie
- Join Date
- Apr 2003
- Location
- UK, Manchester
- Posts
- 147
CTRL-C wont (shouldnt) kill your session but CTRL-D will.
CTRL-C doesnt do anything if I ssh anywhere, just kills whatever app is currently running.
Sure you arent mis-typing ?
- 04-16-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Just so that noone misinterprets: CTRL-D doesn't terminate the ssh session, it just makes sshd (or really the kernel tty line discipline, but that's another story) on the remote machine send an EOF to the shell, which usually makes it terminate itself. It doesn't necessarily terminate other applications, if they are running in the background, though.
Anyway, maybe your ssh client just forgets something in its initalization and is itself terminated by your CTRL-C? Try stracing it to see if it receives SIGINT.
- 04-23-2003 #4Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
Just weird that is started happening after I did
the upgrade to the latest OpenSSH. Maybe I'll
go back a version and see what happens. I am
pretty sure I would have remembered this being
an issue before if it was non-OpenSSH related,
but I suppose stranger things can happen.
- 04-24-2003 #5Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
Well, I downgraded to OpenSSH-3.5p1 and now I do
not have the CTL-C session closing problem with ssh.
- 04-24-2003 #6Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Well, that's good... I guess...


Reply With Quote
