centos實現證書登陸禁止密碼登陸

一、生成祕鑰 ssh-keygen -t rsa 默認會在用戶目錄下生成一個公鑰和私鑰shell 二、將公鑰設置爲該服務器的登陸公鑰 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 三、設置ssh,禁止密碼登陸,改用私鑰登陸 vi /etc/ssh/sshd_config RSAAuthentication yes StrictModes no Pu
相關文章
相關標籤/搜索