Bug 1301 - Repeated ~. need an intervening ENTER to be effective
Summary: Repeated ~. need an intervening ENTER to be effective
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.5p1
Hardware: ix86 Linux
: P4 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 03:05 AEST by Felix Finch
Modified: 2008-04-04 09:58 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Finch 2007-03-30 03:05:50 AEST
ssh from a to b.

ssh from b to c.

Use "~~." to exit from c back to b.

Now "~." on b results in "command not recognized" by bash.

A second "~." will exit from b back to a.

Any intervening command on b, even ENTER alone, does the trick.

This could be a bug in bash for all I know, but my hunch is ssh.  

In this particular case, "a" is an rPath x86 machine, version OpenSSH_4.5p1, OpenSSL 0.9.7f 22 Mar 2005.  "b" is a gentoo x86, version 
OpenSSH_4.5p1, OpenSSL 0.9.8e 23 Feb 2007.  "c" is "a" again.
Comment 1 Damien Miller 2007-03-30 10:48:28 AEST
I don't think this is a bug; it is a consequence of chained SSH connections and is logically consistent behaviour. 

Even if we were to consider it a bug, it would be near impossible to fix in the general case because a SSH session has no robust way of knowing that another SSH session is being tunneled through it.
Comment 2 Damien Miller 2008-04-04 09:58:59 AEDT
Close resolved bugs after release.