Openbmc: obmc-console-client escape character "~." is same with ssh connection escape character.

Created on 21 Dec 2016  路  10Comments  路  Source: openbmc/openbmc

When we use ssh to connect to BMC and executing obmc-console-client then entering escape character "~." to escape obmc-console-client. that will cause ssh session terminated.
Our questions are :

  1. ssh and obmc-console-client escape character should not be the same by default setting,right?
  2. Have any method to set escape character of obmc-console-client dynamically?
bug question

All 10 comments

I don't think this is an issue.

  • The command to exit from ssh session is <Return>~.
  • The command to exit from ssh sesseion's ssh session is <Return>~~.

So to exit from obmc-console-client, simply type <Return>~~..

According to the info from below link, user will use ~. to exit obmc-console-client, therfore user will encounter the ssh session terminate problem.

https://github.com/openbmc/docs/blob/master/console.md

Local console connections
If you're already logged into an OpenBMC machine, you can start a console session directly, using:
$ obmc-console-client
To exit from a console, type:
return ~ .

  • If you're using serial console and run obmc-console-client, you should type return ~ . to quit;
  • If you're using ssh to login to OpenBMC, and then run obmc-console-client, it is actually running ssh on ssh, so you need to type return ~~. to quit obmc-console-client and stays in ssh session.

I agree with your explanation but user doesn't know obmc-console-client is running ssh, they think it likes SOL function.

May I know that will obmc-console-client support -e parameter(like ssh -e "escape char")? Thanks.

@mine260309's approach is the normal approach. We just need to document in an obvious place that the double-escape sequence is required. I think that's better than using a non-standard escape sequence.

I will document and then close this issue.

This issue has been automatically marked as stale because no activity has occurred in the last 6 months. It will be closed if no activity occurs in the next 30 days. If this issue should not be closed please add a comment. Thank you for your understanding and contributions.

How's that documentation going @gtmills ?

Apologies for forgetting about this.
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/20943

https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/20943 Console: Added escaping console while inside ssh
Resolves #898 obmc-console-client escape character "~." is same with ssh connection escape character.

Was this page helpful?
0 / 5 - 0 ratings