Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 440
BigPoppa Avatar asked Nov 18 '25 03:11

BigPoppa


1 Answers

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

like image 81
Nick Avatar answered Nov 21 '25 10:11

Nick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!