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

Cannot Mount with Windows. #430

Open
fynessed opened this issue Apr 29, 2024 · 3 comments
Open

Cannot Mount with Windows. #430

fynessed opened this issue Apr 29, 2024 · 3 comments

Comments

@fynessed
Copy link

I am trying to mount an ubuntu server directory on my local pc. I have seemed to have tried everything. I have a keypair with amazon the key is called, newKey.pem. What is the correct command to mount a directory using SSHFS with a public key on windows?

Doing this SSH command works:

ssh -i "C:\users\user\downloads\newKey.pem" [email protected]

However when I try to mount the directory with this command:

"C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" svc \sshfs.k\[email protected] S: "IdentityFile=C:\users\user\downloads\newKey.pem"

I receive this error:

[email protected]: Permission denied (publickey).
read: Connection reset by peer

Please help, I have been trying to do this for what seems ages!

@fynessed fynessed changed the title Cannot Login with windows. Cannot Mount with Windows. Apr 29, 2024
@ni-null
Copy link

ni-null commented May 13, 2024

this work for me

set .ssh\config like this

Host xx.xx.xx.xx
  HostName xx.xx.xx.xx
  User username
  IdentityFile C:\Users\user\.ssh\id_rsa
  IdentitiesOnly yes

cmd

"C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" svc \sshfs.kr\[email protected]!22\/ X: -o create_file_umask=022,create_dir_umask=022

@rahaaatul
Copy link

rahaaatul commented Aug 3, 2024

this work for me

set .ssh\config like this

Host xx.xx.xx.xx
  HostName xx.xx.xx.xx
  User username
  IdentityFile C:\Users\user\.ssh\id_rsa
  IdentitiesOnly yes

cmd

"C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" svc \sshfs.kr\[email protected]!22\/ X: -o create_file_umask=022,create_dir_umask=022

Can you elaborate more, please?

I get sshfs: invalid argument 'create_file_umask=022,create_dir_umask=022' error on cmd.

@semidark
Copy link

Running the following got me up and running for now

'C:\Program Files\SSHFS-Win\bin\sshfs-win.exe' svc \sshfs.kr\username@hostname!22\home/username/ X:

If someone could explain why the whole thing is neither working in Explorer nor net use I would be delighted to know.

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

4 participants