Linux配置使用SSH Key登陆并禁用root密码登陆

一、root用户登录后,运行如下第一句指令,其余根据提示进行输入:shell [root@localhost ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty f
相关文章
相关标签/搜索