apt key bash centos debian docker fbsd fbsd jail ffmpeg fms freebsd freebsd jail hyper-v jail linux linux routing linux security lvm lvm backup lvm snapshot macosx megacli migrate lvm root mysql mysql 5.7 mysql cluster nested hyper-v NO_PUBKEY ntpd postfix postgresql postgresql auto failover postgresql benchmark postgresql replication raid ssd ssh stream supermicro supermicro ipmi vod vpn Windows Windows Server zfs zpool

QuickFix: Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys

Just set the correct ownership and permissions

#chown root /root/.ssh && chmod 700 /root/.ssh
#chown root /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys

Error in log: Debian auth.log prints these lines:

Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys

Leave a comment

Create a website or blog at WordPress.com