简体   繁体   中英

SFTP Works with bash but not nologin

All of my sftp accounts had a default shell of /bin/nologin

All of a sudden they are failing with exit code 1. I can change the default shell to /bin/bash and it works fine, but not a good solution.

Any ideas on what I am missing?

Thanks!

Jim

Is there anything in the ~.bashrc of the user you're trying to SFTP with?

This is a common gotcha, as any echo statements break SFTP / rsync, SCP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM