Ssh works as always, but sftp and scp don't

Got it!
It had nothing to do with sshd settings.
My /home/nemo/.bashrc was missing the following at its top:

# if not running interactively, do nothing
[[ $- == *i* ]] || return

Both these articles mention this for both scp and sftp:

1 Like