技术头条 - 一个快速在微博传播文章的方式     搜索本站
您现在的位置首页 --> 系统运维 --> ssh 免密码登录

ssh 免密码登录

浏览:2109次  出处信息

概述

   ssh相关的一些命令:

   ssh-keygen: 创建一对公私钥

   ssh-add: 添加秘钥, -L选项查看添加过了的秘钥

   ssh-copy-id: 将公钥放到远程服务器上

   注意:

   openssl-clients  和 openssl 中的差别(ssh-copy-id 是 openssl-clients中的)

[vagrant@localhost ~]$ rpm -ql openssh-clients-5.3p1-94.el6.x86_64
/etc/ssh/ssh_config
/usr/bin/.ssh.hmac
/usr/bin/scp
/usr/bin/sftp
/usr/bin/slogin
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-copy-id
/usr/bin/ssh-keyscan
...
[vagrant@localhost ~]$ rpm -ql openssh-5.3p1-94.el6.x86_64
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ssh-keysign

   参考: http://blog.chinaunix.net/uid-26284395-id-2949145.html

建议继续学习:

  1. Linux shell脚本使用while循环执行ssh的注意事项    (阅读:6397)
  2. 网站密码存储方案比较    (阅读:5298)
  3. 解决linux下安装ssl后,apache重启时需要密码    (阅读:5139)
  4. 在ssh服务里使用chroot    (阅读:4699)
  5. 为什么要用公钥/私钥而不是密码去做SSH身份验证    (阅读:4531)
  6. 懒人连ssh不输密码若干大法    (阅读:4358)
  7. ssh连接超时解决办法    (阅读:4322)
  8. 如何让ssh登录更加安全    (阅读:4330)
  9. 利用QQ游戏破解QQ密码    (阅读:4065)
  10. ssh命令    (阅读:4060)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
© 2009 - 2024 by blogread.cn 微博:@IT技术博客大学习

京ICP备15002552号-1