When should I use this ssh_host_rsa_key.pub?
Use it to restore a missing default, confirm what shipped, or diff against your current OpenSSH config.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjeWkLT4j+P/1wFa1aiekfaML9nXo0UKjfrRTHQN2l/Zvuv5b/nvMqvxhDhA9b8KHkf1uaK+eRZB+vL6+71VxSLn6C+GW4A9xAPBdJyMUV9LBN6LischJmtx9B2+PpUhsftcfYXYnDS0+8j9zZZXhfxsdczcpCqOaMqcbC/P3Ef9C8m64IDUbTZCvDSso1DMglxJlVWGqQFx6zLJ3PkHDdrSARb0dMV0ybNeDcj9nksRsMUlb0w76PO/wSM+GZVwT2ZxPWBpHhqNmI+CIBX9aKMc38PqgKGPHogjLxBmLnPnPKzM6/OsxMOgbmdNaKfgk1jY2ocH8pDenGP7GwH2hV root@5bb92bc4eb11
curl https://exampleconfig.com/api/v1/config/original/21783c70318a61546e2c9d1deb4d677b?hint=ssh_host_rsa_key.pub
wget -O ssh_host_rsa_key.pub https://exampleconfig.com/api/v1/config/original/21783c70318a61546e2c9d1deb4d677b?hint=ssh_host_rsa_key.pub
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/21783c70318a61546e2c9d1deb4d677b?hint=ssh_host_rsa_key.pub' /><config><app>OpenSSH</app><os>Debian 9 (Stretch)</os><location>/etc/ssh/ssh_host_rsa_key.pub</location><lines>1</lines><md5>21783c70318a61546e2c9d1deb4d677b</md5><sha256>5b5a161df2d1fe7648e80bf77641cbda8d4e826d70301713ed3153795e1e763f</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apk add openssh-server
sudo apt update && sudo apt install openssh-server
sudo yum install openssh-server
sudo apt update && sudo apt install openssh-server
When should I use this ssh_host_rsa_key.pub?
Use it to restore a missing default, confirm what shipped, or diff against your current OpenSSH config.
How do I restore OpenSSH defaults?
Download the file, back up the current one in /etc/ssh/ssh_host_rsa_key.pub, replace it, then reload or restart OpenSSH.
Is ssh_host_rsa_key.pub safe for production?
It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.
How does this differ from other OS versions?
Defaults vary by distro and version. This copy matches Debian 9 (Stretch).
Can I use this for OpenSSH troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.