- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Interupt Character does not work with ssh/sshd...
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
10-06-2004 06:16 AM
10-06-2004 06:16 AM
We have an HP 9000/810/D380 running HP-UX 11.00. I just loaded Secure Shell A.03.81.002.
I am able to ssh into this computer using any of three ssh clients (Tectia SSH, Cygwin ssh, and Secure CRT). Things work fine except that the stty intr character does not work. When I hit ^C from my PC, I see nothing on the screen. If I change the intr character to DEL, ^B, or ^A and then hit that character, I see nothing at the screen and nothing happens. If I use these same three ssh clients to log into a Linux machine, the stty intr character (^C) works just fine.
Has anyone else seen this problem?
I did a google on "ssh interrupt" and found a number of hits which indicate that this problem may be common, but nobody posted a fix, solution, or workaround.
Can anyone advise me on this?
Thanks,
Darrell Tschakert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2004 07:38 AM
10-08-2004 07:38 AM
Re: Interupt Character does not work with ssh/sshd.
TERM=dtterm
stty kill=^C (i.e. control-C)
stty by itself will show you your settings.
I bet I'm preaching to the choir here.
When you hit control-C on your screen why do you expect to see it? It means interrupt. It does not show up on the screen for me. And I don't care if I see it. Do you care?
If you really want to actually see the a ^ and a C on the screen, you could always do this:
vi /tmp/junkfile.txt
type i (for insert mode).
type control-v, then control-c.
The control-v tells vi to the next literal character sequence you want into the file junkfile.txt.
If you run something like "bdf|more", you are in the more command. If you type control-C, does it drop you out of the more command? If it does, then you have verified that the interrupt is working.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2004 01:10 AM
10-09-2004 01:10 AM
Re: Interupt Character does not work with ssh/sshd.
Anyway, I finally got the ^C to work. I rebooted the computer and it started warking. One of the first things that I ask people to do when they ask me to debug a problem is to reboot the computer. I have to start following my own advice.
The trouble that I am having now is with setting up for passwordless logins between a small group of HP's, all of which trust each other. I can get a Linux computer to let root from an HP get in passwordless, but not Linux to HP-UX.
Thanks,
Darrell T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 12:00 AM
10-11-2004 12:00 AM
Re: Interupt Character does not work with ssh/sshd.
I would put in a new forum question on being able to login without a password. I know I can log in without a password. But that's because I log in once each morning with a huge pass phrase using putty's authentication agent.
I don't log in as root. And I log out of every daily.
If you're looking for automation, a lot of folks have mentioned "expect". I never used it myself though.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 01:29 AM
10-11-2004 01:29 AM
SolutionI have seen problems with:
1) exchanging keys between openssh and commercial ssh.
2) Some clients not allowing a user to log in if the host key has changed (some clients will error and tell you of an invalid key - others will not).
3) If you are trying to do this as root, make sure that you do not have root login disabled for ssh (check sshd_conf)
Col.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2004 03:28 AM
11-12-2004 03:28 AM
Re: Interupt Character does not work with ssh/sshd.
Steve - I found a document outlining how to set up passwordless logins. I used that info to write a little shell script that helps set up the passwordless logins. Thanks.
Colin - I did not know about the "-v" option. I have solved my problems some time back and was just going back to pass out points. That's when I saw your "-v" note. This is a nice bit of information to have. The man entries do not describe the "-v" option.
Thanks,
Darrell T.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2004 02:57 AM
12-11-2004 02:57 AM
Re: Interupt Character does not work with ssh/sshd.
I have been struggling with this same problem for over a year now. Seems to be entirely random and (my guess) an issue with the source code. It stuns me that no one else has mentioned this on any forums before.
If I have any success down the road, Ill touch base with you again. The fix for us at this time it to have our users re-login until they get a functioning break key.
-Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:39 PM
08-22-2005 06:39 PM
Re: Interupt Character does not work with ssh/sshd.
I am now running ssh 4.1p1 and the problem is still there since openssh 3.1
The fact is, that the ssh daemon (when started from a tty) inherits the tty settings. Hhus it accepts ctrl-C as interrupt when it is set in the invokings shells tty settings. So if I start sshd manually from a shell everything works fine.
Unfortunately when sshd is started from the bootup processes (namely /sbin/init.d/sshd) there is no tty attached and thus there is no tty setting for the intr key.
I could not figure out a way to attach the sshd start to a tty when it is started from init and I would greatly appreciate if someone knew a trick to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 09:57 PM
08-22-2005 09:57 PM
Re: Interupt Character does not work with ssh/sshd.
Thanks for all the advise solving this problem.
Darrell Tschakert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 10:01 PM
08-22-2005 10:01 PM
Re: Interupt Character does not work with ssh/sshd.
Thanks,
Darrell Tschakert