Skip to content

FEAT: Add ability to input user@host.com manually when using :SSHConnect #9

@zeromask1337

Description

@zeromask1337

:SSHConnect command fails silently after "Connecting to hostname" and ignores user specification for raw hostnames

Issues

  1. User ignored for raw hostnames: :SSHConnect user@hostname uses local username instead of specified user for IPs/hostnames not in ~/.ssh/config
  2. Silent failures: No error messages when connections fail, leaving empty mount directories
  3. 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

  1. Run :SSHConnect remoteusername@[raw server ip]

  2. Connection succeeds but uses wrong user (local username instead of remoteusername)

  3. Have host in ~/.ssh/config

  4. Run :SSHConnect host

  5. 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions