githubに接続しようとすると、次のような結果が表示されます。
$ ssh -T [email protected]
Permission denied (publickey).
ディレクトリに対する私の権限は次のとおりです。
$ ls -la ~/.ssh
total 24
drwxr-xr-x 2 ec2-user ec2-user 120 Nov 23 23:21 .
drwx------ 9 ec2-user ec2-user 214 Nov 23 23:21 ..
-rw-r--r-- 1 ec2-user ec2-user 393 Nov 23 19:19 authorized_keys
-rw------- 1 ec2-user ec2-user 419 Nov 23 23:07 id_ed25519
-rw-r--r-- 1 ec2-user ec2-user 106 Nov 23 23:10 id_ed25519.pub
-rw------- 1 ec2-user ec2-user 3243 Nov 23 19:42 id_rsa
-rw------- 1 ec2-user ec2-user 750 Nov 23 19:43 id_rsa.pub
-rw------- 1 ec2-user ec2-user 2375 Nov 23 21:02 known_hosts
次に、詳細を実行します。
$ ssh -vT [email protected]
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to github.com [140.82.112.4] port 22.
debug1: Connection established.
debug1: identity file /home/ec2-user/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ec2-user/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ec2-user/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ec2-user/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ec2-user/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ec2-user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/ec2-user/.ssh/id_ed25519 type 4
debug1: key_load_public: No such file or directory
ここに権限の問題があるようですが、わかりません。どんな助けでも大変感謝します。