Translated message

A translation of this page exists in English.

如何在 Red Hat Enterprise Linux 中设置 SSH 密钥进行免密码登录

Solution In Progress - Updated -

Issue

  • 如何设置 SSH 免密码登录
  • 如何设置 SSH 免密码登录?
  • 如何在 Red Hat Enterprise Linux 上的远程主机中安装 SSH 身份密钥
  • 如何在不使用用户名/密码的情况下,使用 ssh 在服务器之间传输文件。
  • 即使已将 rss 公钥附加到远程服务器,在 ssh 客户端中仍然出现以下错误:

    Trying below from primary server after configuring rsa key:
    [user@ssh-client.example.com ~]$ ssh someuser@10.0.0.1
    Connection closed by 10.0.0.1
  • 在 ssh 服务器端的 /var/log/secure 中出现以下错误:

    sshd[xxxx]: Authentication refused: bad ownership or modes for directory /home/XXX

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content