SFTP Received Message Too Long
by dervish on May.28, 2013, under Linux, MAC
“Received message too long” can be caused by using /sbin/nologin as the users shell for an account that is being accessed via SFTP. SFTP generates the error when it receives unexpected output during the login.
lily:~ dervish$ grep user /etc/passwd
user:x:101347:101347:User SFTP Account:/var/SFTP/user:/sbin/nologin
lily:~ dervish$ sftp user@sftp.server.com
user@sftp.server.com's password:
Received message too long 1416128883
touch /etc/nologin.txt
lily:~ dervish$ sftp user@sftp.server.com
user@sftp.server.com's password:
Connection closed
lily:~ dervish$ /sbin/nologin
This account is currently not available.
Leave a Reply
You must be logged in to post a comment.