本文介绍了断开连接后使SSH会话保持运行-整夜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是此问题的后续问题.

>

@Chris Lear通过使用 screen 推荐来接受我的建议.效果很好,可以在短时间内退出.但是我几次遇到以下问题.

我按ctrl + a,ctrl + d退出并进入睡眠状态,并尝试在第二天早晨恢复时,我一直收到以下错误消息,并且服务器上的matlab进度已死.>

错误消息是:packet_write_wait:与128.2.xx.xxx的连接:管道断开.

有关如何解决此问题的任何想法?

谢谢!

解决方案

在服务器上运行屏幕(而不是客户端,这似乎是您现在正在做的).这样,即使您未通过ssh连接到服务器,MATLAB也可以写入输出.命令的顺序是ssh,screen,matlab.如果要恢复会话,只需通过ssh连接到服务器,然后运行诸如screen -x

This is a follow up question for this question.

I took the advise by @Chris Lear by using screen commend. It works great, for short time sign out. But i met the following question several times.

After I log out, by ctrl+a, ctrl+d, and go to sleep, and try to resume on next morning, I am keep getting the following error message and the matlab progress on server is dead.

The error message is:packet_write_wait: connection to 128.2.xx.xxx: Broken pipe.

any ideas on how to fix this?

Thank you!

解决方案

Run the screen on the server (as opposed to on the client, which is what you seem to be doing right now). This way, MATLAB can write output even if you are not connected to the server via ssh. The order of commands for this is ssh, screen, matlab. If you want to resume your session, just connect to the server via ssh, then run something like screen -x

这篇关于断开连接后使SSH会话保持运行-整夜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:05
查看更多