Enable SSH login on Ubuntu
I followed DeepSeek’s instruction to enable SSH login on Ubuntu:
There are several notes about the SSH daemon configuration on Ubuntu. Firstly, better to disable the ufw
firewall for testing environment. In addition, better to disable the gcr-ssh-agent
like this:
And if I need to debug the sshd
, here is the reference:
Most importantly, the configurations are required in /etc/ssh/sshd_config
:
PubkeyAuthentication yes
AllowUsers anan
Some more troubleshooting info: