vatlab / sos-pbs

PBS task engine for SoS
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

sos hanges if ssh prompts for input #1

Closed BoPeng closed 6 years ago

BoPeng commented 6 years ago

We have recommended in our documentation that users try to ssh to remote host and make sure that they can ssh without password. The first time users will be prompted for a question ' ... yes/no' but subsequent connections would connect directly,

The problem is that if users fail to test connection, or if uses has changed host ID (so ~/.ssh/known_hosts is outdated), sos would hang during ssh connection. We should probably try to detect this problem and instruct users how to fix it.

BoPeng commented 6 years ago

Basically for whatever remote operation, sos will fire a check_connection thread after 5 seconds, report problem and exit the program if error happens.