On 2009-07-23 14:40, Phill Coxon wrote:
The trouble is that if I copy a bunch of files, or change directories several times using the sftp:// interface, it gets triggered and I get locked out.
[...]
I really need some way to force the same ssh session to be used...
Have you tried using SSH's ControlMaster feature? ('man ssh_config') You can establish an initial SSH connection and subsequent connections to the host will reuse the master connection instead of initiating new ones.
It can be enabled by adding a stanza to your ~/.ssh/config similar to: Host * ControlMaster auto ControlPath ~/.ssh/master...@%h.%p ServerAliveInterval 60 ServerAliveCountMax 3