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就可以用了。

          以前都是手動復制粘貼的...
          主站蜘蛛池模板: 孝义市| 平谷区| 五指山市| 澄江县| 横峰县| 略阳县| 营口市| 衡山县| 双桥区| 黔南| 林口县| 沂源县| 铜山县| 绥中县| 双鸭山市| 卫辉市| 铜陵市| 沈丘县| 神池县| 绥中县| 八宿县| 绥宁县| 法库县| 四川省| 乌审旗| 昭平县| 怀柔区| 河南省| 中超| 郸城县| 玛沁县| 霸州市| 乐昌市| 贡嘎县| 阿勒泰市| 龙山县| 沈丘县| 潼南县| 威远县| 仪陇县| 宁乡县|