Description :SSHConnect command fails silently after "Connecting to hostname" and ignores user specification for raw hostnames
Issues
User ignored for raw hostnames : :SSHConnect user@hostname uses local username instead of specified user for IPs/hostnames not in ~/.ssh/config
Silent failures : No error messages when connections fail, leaving empty mount directories
No debugging tools : Impossible to troubleshoot connection issues
Expected vs Actual
Expected:
:SSHConnect user@host authenticates as specified user
Clear error messages for failures
Failed connections clean up empty directories
Actual:
:SSHConnect remoteusername@[raw server ip] connects as local user localusername
:SSHConnect mystand creates empty ~/mnt/mystand directory with no feedback
Manual ssh commands work but plugin fails silently
Reproduction
Run :SSHConnect remoteusername@[raw server ip]
Connection succeeds but uses wrong user (local username instead of remoteusername)
Have host in ~/.ssh/config
Run :SSHConnect host
Creates empty ~/mnt/host/ directory, no error shown
Environment
Neovim 0.10+
macOS/Darwin
OpenSSH
Proposed Fixes
Fix user handling in authentication for raw hostnames
Add persistent error display and debug logging
Implement proper cleanup of failed mount directories
Add :SSHDebug and :SSHTest commands
20-12-2025_sEtMxmQh.mp4
Reactions are currently unavailable
You can’t perform that action at this time.
:SSHConnectcommand fails silently after "Connecting to hostname" and ignores user specification for raw hostnamesIssues
:SSHConnect user@hostnameuses local username instead of specified user for IPs/hostnames not in~/.ssh/configExpected vs Actual
Expected:
:SSHConnect user@hostauthenticates as specified userActual:
:SSHConnect remoteusername@[raw server ip]connects as local userlocalusername:SSHConnect mystandcreates empty~/mnt/mystanddirectory with no feedbacksshcommands work but plugin fails silentlyReproduction
Run
:SSHConnect remoteusername@[raw server ip]Connection succeeds but uses wrong user (local username instead of
remoteusername)Have host in
~/.ssh/configRun
:SSHConnect hostCreates empty
~/mnt/host/directory, no error shownEnvironment
Proposed Fixes
:SSHDebugand:SSHTestcommands20-12-2025_sEtMxmQh.mp4