SFTP Received Message Too Long

by 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's password:
Received message too long 1416128883

touch /etc/nologin.txt

lily:~ dervish$ sftp's password:
Connection closed

lily:~ dervish$ /sbin/nologin
This account is currently not available.

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...