bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

主機(jī)間無需密碼基于ssh通信

node1:172.16.58.1

創(chuàng)新互聯(lián)是專業(yè)的金安網(wǎng)站建設(shè)公司,金安接單;提供成都網(wǎng)站建設(shè)、成都網(wǎng)站制作,網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行金安網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊,希望更多企業(yè)前來合作!

node2:172.16.58.3

node1--> node2


首先在node1生成秘鑰

執(zhí)行命令ssh-keygen -P ''

詢問保存路徑直接回車默認(rèn)即可,

后面提示私鑰保存為/root/.ssh/id_rsa

公鑰保存為/root/.ssh/id_rsa.pub

[root@node1 ~]# ssh-keygen -P ''

Generating public/private rsa key pair.

Enter file in which to save the key (/root/.ssh/id_rsa): 

Your identification has been saved in /root/.ssh/id_rsa.

Your public key has been saved in /root/.ssh/id_rsa.pub.

The key fingerprint is:

dc:62:ba:81:ac:dd:d9:93:fa:b4:9b:21:8d:e7:98:8c root@node1.magedu.com

The key's randomart p_w_picpath is:

+--[ RSA 2048]----+

|                 |

|                 |

|                 |

|       . .       |

|        S .      |

|   . . = .       |

|    o = =.       |

|   o + %o+       |

|  . E OoBo       |

+-----------------+

把秘鑰傳給node2主機(jī)

ssh-copy-id -i .ssh/id_rsa.pub root@172.16.58.3

[root@node1 ~]# ssh-copy-id -i .ssh/id_rsa.pubroot@172.16.58.3

The authenticity of host '172.16.58.3 (172.16.58.3)' can'tbe established.

RSA key fingerprint isdb:f8:11:fa:7d:30:95:44:1b:eb:ea:89:ee:fa:a1:27.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '172.16.58.3' (RSA) to the listof known hosts.

root@172.16.58.3's password:

Now try logging into the machine, with "ssh'root@172.16.58.3'", and check in:

 

  .ssh/authorized_keys

 

to make sure we haven't added extra keys thatyou weren't expecting.

測試是否成功免密碼登陸,沒有提示輸入密碼

ssh 172.16.58.3 'date';date
[root@node1 ~]# ssh 172.16.58.3 'date';date

Wed Dec 31 16:51:41 CST 2014

Wed Dec 31 16:52:42 CST 2014

新聞標(biāo)題:主機(jī)間無需密碼基于ssh通信
網(wǎng)頁URL:http://vcdvsql.cn/article44/pdcsee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供ChatGPT、營銷型網(wǎng)站建設(shè)自適應(yīng)網(wǎng)站、Google、App設(shè)計、建站公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)