Why the client receives the message 'Couldn't read packet: Connection reset by peer' when trying to access sftp chroot ?

Solution Verified - Updated -

Issue

When using sftp on a chrooted account, the following error is shown:

[root@localhost ~]# sftp skf@192.168.122.68
skf@192.168.122.68's password: 
Write failed: Broken pipe
Couldn't read packet: Connection reset by peer

Environment

  • Red Hat Enterprise Linux 6
  • openssh-5.3p1-94.el6
  • chrooted sftp environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.