首页 > 代码库 > ssh 免密码论证连接
ssh 免密码论证连接
1.生成公钥和私钥 ssh-keygen -t dsa 2.发送公钥 oldboy888@ser200 .ssh]$ ssh-copy-id -i id_dsa.pub "-p 20000 oldboy888@192.168.1.201" 10 The authenticity of host ‘192.168.1.201 (192.168.1.201)‘ can‘t be established. RSA key fingerprint is 0a:13:db:54:60:3e:85:46:b5:ea:d5:b9:c0:5e:51:74. Are you sure you want to continue connecting (yes/no)? Host key verification failed. [oldboy888@ser200 .ssh]$ ssh-copy-id -i id_dsa.pub "-p 20000 oldboy888@192.168.1.201"> ; 10 The authenticity of host ‘192.168.1.201 (192.168.1.201)‘ can‘t be established. RSA key fingerprint is 0a:13:db:54:60:3e:85:46:b5:ea:d5:b9:c0:5e:51:74. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘192.168.1.201‘ (RSA) to the list of known hosts. oldboy888@192.168.1.201‘s password: Now try logging into the machine, with "ssh ‘-p 20000 oldboy888@192.168.1.201‘", and check in: .ssh/authorized_keys to make sure we haven‘t added extra keys that you weren‘t expecting. 3.检查是否免密码论证 [oldboy888@ser200 .ssh]$ ssh -p2000 oldboy888@192.168.1.201 free -m ssh: connect to host 192.168.1.201 port 2000: Connection refused [oldboy888@ser200 .ssh]$ ssh -p20000 oldboy888@192.168.1.201 free -m total used free shared buffers cached Mem: 484 71 412 0 9 30 -/+ buffers/cache: 31 452 Swap: 1027 0 1027
本文出自 “蜘蛛侠” 博客,请务必保留此出处http://txidc.blog.51cto.com/9138217/1562397
ssh 免密码论证连接
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。