sshfs.nvim
sshfs.nvim copied to clipboard
RemoteCommand in ssh_config breaks sshfs mounts
A host whose ssh_config entry sets RemoteCommand, e.g.
RemoteCommand cd ~/Development/uphill/nightshift && exec $SHELL -l
cannot be mounted. ssh -G reports the directive, the plugin passes the alias straight through, and the remote command runs instead of the sftp subsystem sshfs needs, so the mount fails.
The same entry works fine for interactive ssh, which is what makes it confusing: the host is reachable, :SSHTest looks sane, and only the mount breaks. Hosts configured this way are effectively unmountable today with no hint as to why.
Worth deciding whether the mount path should neutralise the directive itself, or just detect it and say so.