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 · 1 comment
Open

Cannot Mount with Windows. #430

fynessed opened this issue Apr 29, 2024 · 1 comment

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" ubuntu@ec2-ipAddress.compute-1.amazonaws.com

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

"C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" svc \sshfs.k\ubuntu@ec2-ipAddress.compute-1.amazonaws.com S: "IdentityFile=C:\users\user\downloads\newKey.pem"

I receive this error:

ubuntu@ec2-ipAddress.compute-1.amazonaws.com: 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\user@xx.xx.xx.xx!22\/ X: -o create_file_umask=022,create_dir_umask=022

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