"ロードキー" /Users/uname/.ssh/id_rsa": ディレクトリです。

次のようにキーゼンを保存します。

sudo ssh-copy-id -f -i id_rsa/uname.pub name@host

しかし、sshを試してみると、次のエラーが発生します。

"Load key "/Users/uname/.ssh/id_rsa"

なぜ?

私の.pubファイルは次の場所にあります。/Users/uname/.ssh/id_rsa

ベストアンサー1

(オープン) SSH クライアントは読み取りを試みます一部のファイル名秘密鍵が含まれているとします。

~/.ssh/identity
~/.ssh/id_dsa
~/.ssh/id_ecdsa
~/.ssh/id_ed25519
~/.ssh/id_rsa
    Contains the private key for authentication. 

あなたが持っているようです。id_rsa 目次、使用する必要があります-issh秘密鍵がどこにあるかを知らせるオプション:

-i identity_file

   Selects a file from which the identity (private key) for public key authentication is read. 

または、秘密鍵を~/.ssh/ディレクトリに直接移動し、空のディレクトリを削除できるid_rsaように、鍵ファイルの名前を一時的に変更するように注意してください。id_rsa予想されるファイル名でキー名を指定すると、ssh常に指定を避けることができます-i

おすすめ記事