Posted On December 17, 2020

An Issue with RSA Key On CentOS 8

kimconnect 0 comments
blog.KimConnect.com >> Linux >> An Issue with RSA Key On CentOS 8

Error message seen by checking SSH Daemon status:

[root@linux1 testadmin]# service sshd status
Redirecting to /bin/systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-12-16 14:28:24 PST; 118h ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 152002 (sshd)
Tasks: 1 (limit: 49018)
Memory: 21.2M
CGroup: /system.slice/sshd.service
└─152002 /usr/sbin/sshd -D [email protected],[email protected],aes256-ctr,aes256-cbc,aes128-gcm@openss>

Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: Permissions 0715 for '/etc/ssh/ssh_host_rsa_key' are too open.
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: It is required that your private key files are NOT accessible by others.
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: This private key will be ignored.
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: Unable to load host key "/etc/ssh/ssh_host_rsa_key": bad permissions
Feb 16 22:39:31 sftp.kimconnect.com sshd[82681]: error: Unable to load host key: /etc/ssh/ssh_host_rsa_key

The Quick Fix:

[root@linux1 testadmin]# chmod 600 /etc/ssh/ssh_host_rsa_key

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Linux: Compiling Software

Install From RPM: rpm -ivh PACKAGENAME   Install from TAR.GZ tar -xzvf PACKAGENAME cd PACKAGENAME…

Fedora: Setting Programs to Automatically Start

on a fedora core box, use chkconfig like this:Code:chkconfig --level 345 httpd onchkconfig --level 2345…

VMware Virtual Disk Manager Does Not Expand Partitions

If you are using the VMware Virtual Disk Manager included in GSX Server, VMware Server,…