Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSHFS-Win does not work correctly with comments in the ssh-config file (Windows 11) #431

Open
Javekson opened this issue May 12, 2024 · 1 comment

Comments

@Javekson
Copy link

I am having an issue using SSHFS-Win Manager to connect to a virtual machine. It appears that the issue is related to the presence of comments starting with # in the SSH configuration file (C:\Users\Javekson\.ssh\config).

Steps to reproduce:

Install and configure SSHFS-Win Manager.
Create an SSH configuration file (C:\Users\Javekson\.ssh\config) with the following content:

Host myvm
  HostName 192.168.1.100
  User javekson
  IdentityFile C:\Users\Javekson\.ssh\id_rsa

# This comment causes the issue
# Comment out this line to resolve the issue
# Example comment

Run SSHFS-Win Manager and try to connect to the virtual machine.

Expected behavior:
SSHFS-Win Manager should successfully connect to the virtual machine and mount a drive.

Actual behavior:
SSHFS-Win Manager fails to connect to the virtual machine and does not mount a drive.

Temporary workaround:
Remove all comments from the SSH configuration file (C:\Users\Javekson\.ssh\config).

@felipecrs
Copy link
Contributor

It's funny it even works for you. SSHFS-Win was never able to detect hosts from my config file even though ssh on powershell does normally. After reading your issue, I removed the comments in my config file, but unfortunately nothing changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants