I am trying to use the VS Code extension Remote - SSH (v0.63.0) to develop C/C++ code on a remote system.
The remote system is a cluster of tens of Linux (Ubuntu 14) machines using OpenAFS.
I have run into a problem:
- Initial connection: works fine
- Further attempts fail, it times out during retries
To solve, I would delete the .vscode-server
folder, change extension settings, and try reconnecting a few times. Ultimately, I have learned of two possible solutions:
"remote.SSH.useFlock": false
- This solved the problem for me
"remote.SSH.lockfilesInTmp": false
- Suggested by a peer using the same file system, I didn't try this
What (in practice) is the difference between the two? Which is the better choice?
Aside: SSH config
Host foo foo.bar.addr
HostName foo.bar.addr
User qux
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
ControlPersist yes