Scp from command line
In order to be able to sftp from command, the user has to have a proper shell. “false” is not an option.
You may also check some restricted shells.
If you get the message “Expected SSH_FXP_VERSION” while using phpseclib / Laravel Ssh connections this is the point, too.