On Saturday 12 of December 2009 11:46:34 Samuel ROZE wrote:
> So I send an "\n" character, and then I send "~?" to have a list of all
>
> signals possibles. That's returning:
> > ~?
> > -bash: ~?: command not found

You must be doing something wrong. The same sequence works for me
fairly well:

$ echo $SSH_TTY
/dev/pts/0
$ ~?
Supported escape sequences:
  ~.  - terminate connection (and any multiplexed sessions)
  ~B  - send a BREAK to the remote system
  ~C  - open a command line
  ~R  - Request rekey (SSH protocol 2 only)
  ~^Z - suspend ssh
  ~#  - list forwarded connections
  ~&  - background ssh (when waiting for connections to terminate)
  ~?  - this message
  ~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)


I suspect you pressed enter after "~?", thus it was taken as a bash command. 
However in the working case the '~' is not echoed at first. It appears right 
after you press the '?' (no need for '\n' then).

Try the following as minimal example:
1. connect to host with ssh(1) with plain terminal
2. press '~'
3. press '.'
4. you should be immediately disconnected

Kamil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to