Article 5MAQJ Cannot SSH into debian instance using default host key

Cannot SSH into debian instance using default host key

by
iicapn
from LinuxQuestions.org on (#5MAQJ)
This has been baffling me... I have a brand new debian instance (tested on 10 and 11). I know that when you install the openssh server with apt install openssh-server, it creates a set of default host keys at /etc/ssh like ssh_host_ed25519_key and ssh_host_ed25519_key.pub, etc.

I was under the impression that those keys were valid for accessing the box... so if I copied ssh_host_ed25519_key to my local machine, I could use that as the private key and connect to the box as root (assuming sshd_config allows for root to log in).

Instead when I try, it's rejected...

Any help understanding this issue would be much appreciated! Thank you!

p.s. during testing, I have set it so that I can log into root with the password, so I can get into the box, but ordinarily I disable password auth.latest?d=yIl2AUoC8zA latest?i=5CcxN6Mp99o:kNPjMZe2V-4:F7zBnMy latest?i=5CcxN6Mp99o:kNPjMZe2V-4:V_sGLiP latest?d=qj6IDK7rITs latest?i=5CcxN6Mp99o:kNPjMZe2V-4:gIN9vFw5CcxN6Mp99o
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments