SSH connection to my WD My Cloud EX2 not as expected

Or otherwise modify one of the startup scripts in 

/mnt/HD/HD_a2/Nas_Prog/*/start.sh

In order to modify sshd_config on startup

Since the primary use case for ssh login is for git, I suppose its startup script is the best candidate to use to modify the ssh configuration file.

In conclusion - to allow normal user login, modify file

/mnt/HD/HD_a2/Nas_Prog/git/start.sh

 and add these two lines at the bottom

sed -ir 's/(AllowUsers .*)/\1 alice bob/' /etc/ssh/sshd_config
kill -HUP `cat /var/run/sshd.pid`

Be sure to replace “alice” and “bob” with actual user names that are already present. Separate each name with a space.

No firmware modification necessary.