📜  在 shell 脚本中退出 ssh 会话 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:27.059000             🧑  作者: Mango

代码示例1
1. closing the shell session, e.g. with exit followed by Enter, or Ctrl-d usually allows you to exit the ssh session normally,
OR
2. in the case where you have a bad connection and the shell is unresponsive, hit the Enter key, then type ~. and ssh should immediately close and return you to your command prompt.