Red Hat Enterprise Linux に、パスワードを入力しないで SSH にログインするように設定する
Issue
- パスワードレスの SSH ログインを設定する方法
- パスワードレスの SSH ログインを設定するにはどうすれば良いですか?
- Red Hat Enterprise Linux のリモートホストに SSH ID キーをインストールするにはどうすれば良いですか?
- ユーザー名/パスワードを入力せずにサーバー間でファイルを転送するにはどうすれば良いですか?
-
リモートサーバーに 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 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.