The key's randomart image is:
+---[RSA 2048]----+
| . +o=|
| o o oo|
| . . . * .|
| o o * O.|
| . S ..+ O =|
| ...+ =+|
| o. *.+|
| E . .. . .*o+o|
| . . .. .o .+*+=|
+----[SHA256]-----+
(base) [ec2-user@ip-172-31-8-xxx workspace]$ ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
(base) [ec2-user@ip-172-31-8-xxx workspace]$ ls -al ~/.ssh
total 24
drwx------ 2 ec2-user ec2-user 4096 Jul 23 06:44 .
drwx------ 11 ec2-user ec2-user 4096 Jul 23 05:18 ..
-rw------- 1 ec2-user ec2-user 392 May 6 16:48 authorized_keys
-rw------- 1 ec2-user ec2-user 1675 Jul 23 06:44 id_rsa
-rw-r--r-- 1 ec2-user ec2-user 399 Jul 23 06:44 id_rsa.pub
-rw-r--r-- 1 ec2-user ec2-user 884 Jul 23 06:40 known_hosts
(base) [ec2-user@ip-172-31-8-237 workspace]$ cat /Users/xxxxxx/.ssh/id_rsa.pub #错误做法
cat: /Users/xxxxx/.ssh/id_rsa.
怎么查看SSH key
最新推荐文章于 2024-04-09 19:17:42 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)