zoukankan      html  css  js  c++  java
  • ssh 认证

    centos6.5:/root#ssh 192.168.11.181 date
    The authenticity of host '192.168.11.181 (192.168.11.181)' can't be established.
    RSA key fingerprint is 09:8e:2d:8a:d3:47:35:38:b4:a3:d4:ba:0f:d0:e3:81.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.11.181' (RSA) to the list of known hosts.
    root@192.168.11.181's password: 
    
    centos6.5:/root#ssh 192.168.11.181 hostname
    root@192.168.11.181's password: 
    
    ssh-keygen -t rsa	  ##生成公钥
    
    centos6.5:/root/.ssh#ls
    id_rsa  id_rsa.pub
    
     cat *.pub >authorized_keys
    
    拷贝公钥要远程机器
    
    scp authorized_keys 192.168.11.181:/root/.ssh
    
    
    centos6.5:/root/.ssh# cat *.pub >authorized_keys
    centos6.5:/root/.ssh#scp authorized_keys 192.168.11.181:/root/.ssh
    root@192.168.11.181's password: 
    authorized_keys   
    
    

  • 相关阅读:
    Splay复习
    带权并查集复习-HDU3038
    罗素悖论-图灵停机问题
    数独解法c++实现
    状压DP NOI2001 炮兵阵地
    区间第k大数
    分块随笔T2
    分块感想
    webkit的高级属性
    设计模式
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349750.html
Copyright © 2011-2022 走看看