I recently tried to using sftp to access my linux box where I implement a simple shell of my own. And I set the users except root to use mine shell in default(by editing /etc/passwd
file). Then problem arise, once I tried to access through sftp, I will receive a message saying:
Received message too long
I searched for the solutions and one solution is to change the default shell for this user back to normal bash shell. I tried so and it worked, the problem is that is there a way that I can still using my own shell and also allow sftp to go through? Please answer me with more details like which file I should go editing, etc
sudo service sshd restart
and I threw in a restart of my sftp daemon (sudo service vsftpd restart
) for good measure. – Norvun