Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
ssh -i ~/keys/id_rsa root@192.168.1.201
Enter passphrase for key '/home/avin/keys/id_rsa': 
Last login: Tue Jul 17 11:01:28 2012 from 192.168.1.240
[root@rsh_management ~]# exit
logout

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

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

and this one too

avin@avin-pc ~ % sshfs -o IdentityFile=~/keys/id_rsa root@192.168.1.201:/ /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

1 Answer 1

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

Your Answer

 
discard

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.