libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.93k stars 496 forks source link

Load key "~/.ssh/id_rsa": invalid format #266

Closed ramaxa9 closed 2 years ago

ramaxa9 commented 3 years ago

When im trying to mount i end up with this error:

$: sudo sshfs -o debug,allow_other,default_permissions,IdentityFile=/~/.ssh/id_rsa mro@xxxx:/ ~/xxx                                             
SSHFS version 3.7.2
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oIdentityFile=/~/.ssh/id_rsa> <-2> <mro@xxxx> <-s> <sftp>
Load key "/~.ssh/id_rsa": invalid format
mro@xxxx: Permission denied (publickey).
read: Connection reset by peer

the key is RSA2 2048bit (with the passphrase, if this is important)

loganwoodxyz commented 2 years ago

This looks like user error. IdentityFile=/~/.ssh/id_rsa

I guarantee you don’t have a directory at /~/.ssh, but you do have a directory at ~/.ssh or $HOME/.ssh

ramaxa9 commented 2 years ago

That not the case, the path is correct. Human error when writing the message

I will check once again

loganwoodxyz commented 2 years ago

That not the case, the path is correct. Human error when writing the message

I will check once again

What’s the update on this?

Nikratio commented 2 years ago

Closing this for now lacking further information.