第一步:打开git bash 或者idea terminal
第二步:找到公匙所在目录
输入: cd ~/.ssh
第三步:查看目录下所有文件
输入: ls
第四步:打开 id_rsa.pub
输入:cat id_rsa.pub
如下图所示:
$ cd ~/.ssh
$ ls
id_rsa id_rsa.pub known_hosts
$ ls
id_rsa id_rsa.pub known_hosts
$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYhRKm9BugAR+ZW1IyEX73KusNpEEB2OWJUakvcZBXoQ7D2huwse8E+EwiBCeTVZGTdfacybx+tkDzIYCZWU7zeCb**************u3b/czKBygsQhDpUeaxmAIgG9T8G/8r/ctwDqIGriwdmHGCy8qHVohkU9ClxtDN0diUQIh2zYGtEGCliD7an3dxl3sSYAt******************n/vkegjqWCRcEqnk7WRDUQhxkJqggYQ/sqMkUyBN+QuzXritjLSEyEH+lhisqTiefIseZMQqfzTbMzp2oBYIdh+SGJ9finHT7xp4uqkyV6ULWokVzaHb ******
网友评论