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:

My Github Page: https://github.com/liweinan

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues