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

Solution Verified - Updated -


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

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


  • 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content