public key authentication works for ssh and scp, but not for sftp and sshfs
sftp and sshfs ask me for my password (and work properly after I enter it), whereas ssh and scp don't ask for a password and just work. When I force the use of public key authentication instead of password authentication, like this sshfs me@server:dir mountpoint -o PreferredAuthentications=publickey
or this sshfs me@server:dir mountpoint -o PasswordAuthentication=no -o PubkeyAuthentication=yes
the connection is closed ("read: Connection reset by peer").
This is true for all servers I have access to. What could be the problem?
sftp and sshfs ask me for my password (and work properly after I enter it), whereas ssh and scp don't ask for a password and just work. When I force the use of public key authentication instead of password authentication, like this
sshfs me@server:dir mountpoint -o PreferredAuthentications=publickeyor this
sshfs me@server:dir mountpoint -o PasswordAuthentication=no -o PubkeyAuthentication=yesthe connection is closed ("read: Connection reset by peer").
This is true for all servers I have access to. What could be the problem?
CAN I HAS FIXD CAPSLOK KEE PLZ?
Login or register to post comments -1 points