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:
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: