Discussion:
Avoid exiting ssh shell with Ctrl-C
(too old to reply)
Andrea Venturoli
2016-05-16 10:07:12 UTC
Permalink
Hello.

I believe this has started since I upgraded to 10.x (at least I don't
remember it happening before...): if I ssh into any host, then press
Ctrl-C, the ssh session terminates.
This is annoying, since I might press Ctrl-C to interrupt a process, but
end up terminating the connection.

Is there any way to stop this (leaving only Ctrl-D to achieve such a thing)?

bye & Thanks
av.
Anton Sayetsky
2016-05-16 10:16:54 UTC
Permalink
Post by Andrea Venturoli
Hello.
I believe this has started since I upgraded to 10.x (at least I don't
remember it happening before...): if I ssh into any host, then press
Ctrl-C, the ssh session terminates.
Post by Andrea Venturoli
This is annoying, since I might press Ctrl-C to interrupt a process, but
end up terminating the connection.
Post by Andrea Venturoli
Is there any way to stop this (leaving only Ctrl-D to achieve such a
thing)?
1. https://forums.freebsd.org/threads/53868/#post-308144
2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208132
Olivier Nicole
2016-05-16 11:08:33 UTC
Permalink
Andrea,

i have the same problem and was pointed to:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208132


I have hd no time to test so far.

best regards,

Olvier
Post by Andrea Venturoli
Hello.
I believe this has started since I upgraded to 10.x (at least I don't
remember it happening before...): if I ssh into any host, then press Ctrl-C,
the ssh session terminates.
This is annoying, since I might press Ctrl-C to interrupt a process, but end
up terminating the connection.
Is there any way to stop this (leaving only Ctrl-D to achieve such a thing)?
bye & Thanks
av.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
Andrea Venturoli
2016-05-16 12:57:18 UTC
Permalink
Post by Andrea Venturoli
Post by Andrea Venturoli
Hello.
I believe this has started since I upgraded to 10.x (at least I don't
remember it happening before...): if I ssh into any host, then press
Ctrl-C, the ssh session terminates.
Post by Andrea Venturoli
This is annoying, since I might press Ctrl-C to interrupt a process,
but end up terminating the connection.
Post by Andrea Venturoli
Is there any way to stop this (leaving only Ctrl-D to achieve such a
thing)?
1. https://forums.freebsd.org/threads/53868/#post-308144
2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208132
Thanks.
It took me a while to understand how to put all those things together...

In any case you suggest I apply
Post by Andrea Venturoli
https://svnweb.freebsd.org/base/stable/10/bin/csh/config_p.h?r1=297789&r2=297788&pathrev=297789
and just recompile csh?


I'd like to avoid moving to stable right now, since I'm in a hot period.

Any chanche we'll get an Errata and/or an MFC?

bye
av.

Loading...