Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
ssh -i ~/keys/id_rsa root@
Enter passphrase for key '/home/avin/keys/id_rsa': 
Last login: Tue Jul 17 11:01:28 2012 from
[root@rsh_management ~]# exit

it's ok i'm in! but...

avin@avin-pc ~/ % sshfs -o ssh_command="ssh -i ~/keys/id_rsa" root@ /mnt/201
root@'s password: 
root@'s password: 
root@'s password: 
read: **Connection reset by peer**

and this one too

avin@avin-pc ~ % sshfs -o IdentityFile=~/keys/id_rsa root@ /mnt/201
Enter passphrase for key '/home/avin/keys/id_rsa': 
read: **Connection reset by peer**

Why do I get "Connection reset by peer"?

share|improve this question
the problem was: on server in file /etc/sshd_config this line was commented > # Subsystem sftp /usr/libexec/openssh/sftp-server – carcinogen75 Jul 17 '12 at 11:09
Post it as an answer below, @carcinogen75. – grawity Jul 17 '12 at 21:16
up vote 3 down vote accepted

on server in file /etc/sshd_config this line was commented

# Subsystem sftp /usr/libexec/openssh/sftp-server
share|improve this answer
Just to clarify; this was on the server? – leiflundgren Dec 27 '13 at 21:29

If you get this from sshfs

read: Connection reset by peer

maybe help to set file to read only

chmod 400 /{{path_to_your_key}}/keypair.pem

and connect again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.