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: GREP Training

Lorum Ipsum - let's learn about grep, ya'll Examples: # Get information only on the…

How To Install Remote Desktop on Ubuntu or Centos 7

Ubuntu:sudo apt-get updatesudo apt-get install xrdp xfce4echo xfce4-session >~/.xsessionsudo service xrdp restartCentOS 7:su -vim /etc/yum.repos.d/xrdp.repo-----…

Yum commands to update server

Wanna ace your Linux job interviews? Well, read more Linuxy stuff and cramp your brain…