错误:

# sftp stuart@10.10.29.23
Write failed: Broken pipe
Couldn't read packet: Connection reset by peer

解决方法:

# su - stuart
su: cannot set user id: Resource temporarily unavailable (实际是这个错误)
# vim /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
*          soft    nproc     65535
root       soft    nproc     unlimited
# logout
sftp stuart@10.10.29.23
Connecting to 10.10.29.23...
stuart@10.10.29.23's password: 
sftp>