mac重启后,再去运行iTerm2中的,之前设置好的ssh的profile:
![](https://www.crifan.com/files/pic/uploads/2021/03/13483fa2b88c4e4d996da445a84ef552.jpg)
结果报错:
A session ended very soon after starting. Check that the command in profile "NeteaseCloudCentOS7" is correct.
![](https://www.crifan.com/files/pic/uploads/2021/03/e45b531d2b594163938aef42f3b7f5ef.jpg)
不过再去试一次,错误又没了,可以正常ssh去登录服务器了:
![](https://www.crifan.com/files/pic/uploads/2021/03/2ff5b574fbe04e3c87c7593ce44294f1.jpg)
转载请注明:在路上 » 【无需解决】Mac中iTerm2中打开SSH的profile报错:A session ended very soon after starting