CentOS 祕鑰對登陸遠程主機.

CentOS 祕鑰對登陸遠程主機.
須要兩臺電腦,IP地址分別是:
服務端:192.168.1.182
客戶端:192.168.1.183
配置祕鑰對登陸遠程主機ssh

客戶端主機生產祕鑰ide

A.生產祕鑰
[root@localhost ~]# ssh-keygen -t rsablog

B.推送祕鑰到服務端主機
[root@localhost ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.1.182it

C.用鑰匙登陸試試
[root@localhost ~]# ssh root@192.168.1.182
Last login: Thu Jun 7 21:47:29 2018 from 192.168.1.183
[root@localhost ~]# ast

D.服務端主機無操做class

相關文章
相關標籤/搜索