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 :
I don't think this is an issue.
<Return>~.<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 ~ .
obmc-console-client, you should type return ~ . to quit;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.