- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ctrl-c not working with SSH A.03.10.001
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:47 AM
07-15-2002 10:47 AM
ctrl-c not working with SSH A.03.10.001
# swlist | grep T1
T1471AA A.03.10.001 HP-UX Secure Shell
If I telnet to this server, CTRL-C works. If I ssh to this box CTRL-C is ignored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:51 AM
07-15-2002 10:51 AM
Re: ctrl-c not working with SSH A.03.10.001
Once you get the shell on the system via ssh - do a
#stty -a
And see what value intr= is set to.
If strange try
#stty intr ^C
That's shift-6 & Cap C.
Then try the ctrl-C again.
If all OK now, you'll have to determine just what's changing intr. If unable to determine, you'll have to modify the .profile (or whatever's appropriate) to set the intr value for you @ login.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:55 AM
07-15-2002 10:55 AM
Re: ctrl-c not working with SSH A.03.10.001
# stty
speed 300 baud; -parity hupcl
intr = ^C; erase = ^H; kill = ^X;
swtch
susp = ^Z;
werase = ^W; lnext = ^V;
brkint -inpck icrnl onlcr tab3
-iexten echo echoe echok
-echoctl -echoke
ROOT[aries:/root]
#
Logged in via Telnet
# stty
speed 9600 baud; evenp hupcl -cread
intr = ^C; erase = ^H; kill = ^X;
swtch
brkint -inpck icrnl -ixany onlcr tab3
-iexten echo echoe -echok
-echoctl -echoke
ROOT[aries:/root]
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:07 AM
07-15-2002 11:07 AM
Re: ctrl-c not working with SSH A.03.10.001
Well, after seeng that output, my guess would be that the problem is the mismatch in the sessions between -parity & evenp. They (parity/evenp) are essentially the same setting
parity/evenp => parenb & cs7
-parity/-evenp => -parenb & cs8
So telnet session is 8-bits enabled parity
While the ssh session is 7-bit parity disabled.
Try on ssh session
#stty evenp
And see if that clears it up. Then determine where the -parity is being set & change it to evenp.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:10 AM
07-15-2002 11:10 AM
Re: ctrl-c not working with SSH A.03.10.001
stty evenp
# stty
speed 300 baud; evenp hupcl
intr = ^C; erase = ^H; kill = ^X;
swtch
susp = ^Z;
werase = ^W; lnext = ^V;
brkint -inpck icrnl onlcr tab3
-iexten echo echoe echok
-echoctl -echoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:14 AM
07-15-2002 11:14 AM
Re: ctrl-c not working with SSH A.03.10.001
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:19 AM
07-15-2002 11:19 AM
Re: ctrl-c not working with SSH A.03.10.001
ctrl-H functions as a backspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:33 AM
07-15-2002 11:33 AM
Re: ctrl-c not working with SSH A.03.10.001
Have you tried
#stty sane
to see if you get the ctrl-C back?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:35 AM
07-15-2002 11:35 AM
Re: ctrl-c not working with SSH A.03.10.001
# stty
speed 300 baud; evenp hupcl
swtch = ^@;
susp = ^Z;
werase = ^W; lnext = ^V;
brkint -inpck icrnl onlcr
-iexten echo -echoe echok
-echoctl -echoke
ROOT[aries:/root]
#
ROOT[aries:/root]
#
ROOT[aries:/root]
# ^C
ksh: ^C: not found
ROOT[aries:/root]
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:38 AM
07-15-2002 11:38 AM
Re: ctrl-c not working with SSH A.03.10.001
#stty intr '^C'
Single quotes required - think I missed that on my initial reply.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:41 AM
07-15-2002 11:41 AM
Re: ctrl-c not working with SSH A.03.10.001
ROOT[aries:/root]
# stty intr ^C
ROOT[aries:/root]
# stty
speed 300 baud; -parity hupcl
intr = ^C;
swtch = ^@;
susp = ^Z;
werase = ^W; lnext = ^V;
brkint -inpck icrnl onlcr
-iexten echo -echoe echok
-echoctl -echoke
ROOT[aries:/root]
It could not be set using single quotes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:52 AM
07-15-2002 11:52 AM
Re: ctrl-c not working with SSH A.03.10.001
Something has to be intercepting the ctrl-C
Maybe somebody will see what we're missing here.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:55 AM
07-15-2002 11:55 AM
Re: ctrl-c not working with SSH A.03.10.001
I have used both Putty and FSecure with no problems with CTRL-C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 12:00 PM
07-15-2002 12:00 PM
Re: ctrl-c not working with SSH A.03.10.001
If I telnet to the box and then ssh to it, the CTRL-C stops working as well. I don't think it is a client problem. I think it is a server problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 12:52 PM
07-15-2002 12:52 PM
Re: ctrl-c not working with SSH A.03.10.001
1)Do #stty -a (NEED the -a) & check the value isig/-isig. If it's -isig then that's what's telling the system to ignore intr. If so do stty isig
to turn it back on.
2) Make sure that no profile is setting
trap "" 2
Which would cause the trap of the intr signal.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 01:22 PM
07-15-2002 01:22 PM
Re: ctrl-c not working with SSH A.03.10.001
speed 300 baud; line = 0;
rows = 30; columns = 83
min = 1; time = 1;
intr = ^C; quit = ^\; erase = ^H; kill = ^X
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp = ^Z; dsusp
werase = ^W; lnext = ^V
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3
ROOT[aries:/opt/ssh/etc]
#
ROOT[aries:/opt/ssh/etc]
# trap
0:echo logout
ROOT[aries:/opt/ssh/etc]
#
ROOT[aries:/opt/ssh/etc]
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 12:26 AM
07-16-2002 12:26 AM
Re: ctrl-c not working with SSH A.03.10.001
I had this same problem with one certain version from the porting center. i upgraded when a newer version became available and the 'ctrl-c' problem was gone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 04:52 AM
07-16-2002 04:52 AM
Re: ctrl-c not working with SSH A.03.10.001
I don't know how this happened, but when I first installed the sshd, the CTRL-C was not enabled. I tried to stop sshd, and I had to kill -9 it. This made me think that the SSHD process was trapping ctrl-c and ignoring it.
I used telnet to get to the box, killed the sshd daemon and restarted it. I then was able to get sshd to recognize the interrupt signal.