Using remote SSH is a bit tricky with specific HPC setups. What I've had to do is set up my ~/.ssh/config
file on my local mac with the following config with the RemoteCommand
flag to instantiate a specific environment on the remote server:
Host *
ControlMaster no
# ControlMaster auto
# ControlPath ~/.ssh/smux/ssh_mux_%C
# ControlPersist yes
Compression no
ExitOnForwardFailure yes