ubuntu managed to disable root login, no matter what is set in /etc/ssh/sshd_config

so all ssh-copy-id root@123.123.123.123 fails

the only possible way to login straight as root (only on test systems!)

is to

1. manually create

mkdir /root/.ssh/

touch /root/.ssh/authorized_keys

2. copy and paste the user’s public key to /root/.ssh/authorized_keys

so basically do manually what ssh-copy-id would do

then try again

ssh root@123.123.123.123

can understand why, to prevent ssh brute force attacks (which are unfortunately very common) damn those canonicals

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin