Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    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.

  2. #2
    Linux 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 ?

  3. #3
    Linux 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.

  4. #4
    Banned
    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.

  5. #5
    Banned
    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.

  6. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Well, that's good... I guess...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •