ITPub博客

首页 > IT基础架构 > 网络安全 > ssh 信任,免密码到远程机器

ssh 信任,免密码到远程机器

原创 网络安全 作者:cccgw 时间:2009-04-08 21:31:00 0 删除 编辑

1、在A机

  • ssh-keygen -t rsa 或 ssh-keygen -d (dsa) => 產生出 id_rsa, id_rsa.pub
  • scp id_rsa.pub remote_hostname:~/.ssh/
  • 2、ssh root@remote_host 'cat>> /home/oracle/.ssh/authorized_keys '

    或在B机

    cat .ssh/id_rsa.pub >> .ssh/authorized_keys

    这样就可以在 A机 ssh 到B机,免密码登录。

    [@more@]

    来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/668365/viewspace-1020182/ ,如需转载,请注明出处,否则将追究法律责任。

    请登录后发表评论 登录
    全部评论

    注册时间:2012-08-27

    • 博文量
      82
    • 访问量
      1035052