posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Use ssh-copy-id avoid inputing password

          Posted on 2012-05-11 09:58 Milo的海域 閱讀(326) 評論(0)  編輯  收藏 所屬分類: Linux
          ssh-copy-id 避免ssh輸入密碼的用法:

          [root@hengtiandesk118 .ssh]# ssh-copy-id -i id_rsa.pub 10.1.186.51
          10
          Warning: Permanently added '
          10.1.186.51' (RSA) to the list of known hosts.
          root@
          10.1.186.51's password: 
          Now try logging into the machine
          , with "ssh '10.1.186.51'", and check in:

            .ssh/authorized_keys

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

          [root@hengtiandesk118 .ssh]# ssh 10.1.186.51
          Last login: Thu May 
          10 18:33:55 2012 from 10.5.4.201
          [root@xen186v01 ~]#

          這個腳本只要裝了openssh-clients就可以用了。

          以前都是手動復制粘貼的...
          主站蜘蛛池模板: 龙口市| 准格尔旗| 古交市| 衢州市| 蓝山县| 芒康县| 闽侯县| 三原县| 内乡县| 黄陵县| 金门县| 宁化县| 华坪县| 隆子县| 宣武区| 弥勒县| 金堂县| 阿合奇县| 丰宁| 临夏市| 剑河县| 大洼县| 临泽县| 陆丰市| 荆州市| 洛宁县| 营口市| 新沂市| 教育| 全州县| 兴安盟| 简阳市| 武乡县| 无棣县| 子长县| 麟游县| 固原市| 永仁县| 彭水| 普陀区| 花莲县|