You can delete unauthorized (or possibly compromised) SSH keys to ensure that an attacker no longer has access to your repositories. You can also approve existing SSH keys that are valid.
-
在任何页面的右上角,单击个人资料照片,然后单击“设置”。
-
In the user settings sidebar, click SSH and GPG keys.
-
On the SSH Settings page, take note of the SSH keys associated with your account. For those that you don't recognize, or that are out-of-date, click Delete. If there are valid SSH keys you'd like to keep, click Approve.
Note: If you're auditing your SSH keys due to an unsuccessful Git operation, the unverified key that caused the SSH key audit error will be highlighted in the list of SSH keys.
-
Open Terminal.
-
在后台启动 ssh 代理。
$ eval "$(ssh-agent -s)" > Agent pid 59566
� �据您的环境,您可能需要使用不同的命令。 例如,在启动 ssh-agent 之前,� 可能需要通过运行
sudo -s -H
� �访问,或者可能需要使用exec ssh-agent bash
或exec ssh-agent zsh
运行 ssh-agent。 -
Find and take a note of your public key fingerprint.
$ ssh-add -l -E sha256 > 2048 SHA256:274ffWxgaxq/tSINAykStUL7XWyRNcRTlcST1Ei7gBQ /Users/USERNAME/.ssh/id_rsa (RSA)
-
The SSH keys on GitHub Enterprise Server should match the same keys on your computer.
-
在任何页面的右上角,单击个人资料照片,然后单击“设置”。
-
In the user settings sidebar, click SSH and GPG keys.
-
On the SSH Settings page, take note of the SSH keys associated with your account. For those that you don't recognize, or that are out-of-date, click Delete. If there are valid SSH keys you'd like to keep, click Approve.
Note: If you're auditing your SSH keys due to an unsuccessful Git operation, the unverified key that caused the SSH key audit error will be highlighted in the list of SSH keys.
-
Open Git Bash.
-
如果使用的是 Git Bash,请打开 ssh-agent:
# start the ssh-agent in the background $ eval "$(ssh-agent -s)" > Agent pid 59566
如果使用其他终端提示(例如 Git for Windows),请打开 ssh-agent:
# start the ssh-agent in the background $ eval $(ssh-agent -s) > Agent pid 59566
-
Find and take a note of your public key fingerprint.
$ ssh-add -l -E sha256 > 2048 SHA256:274ffWxgaxq/tSINAykStUL7XWyRNcRTlcST1Ei7gBQ /Users/USERNAME/.ssh/id_rsa (RSA)
-
The SSH keys on GitHub Enterprise Server should match the same keys on your computer.
-
在任何页面的右上角,单击个人资料照片,然后单击“设置”。
-
In the user settings sidebar, click SSH and GPG keys.
-
On the SSH Settings page, take note of the SSH keys associated with your account. For those that you don't recognize, or that are out-of-date, click Delete. If there are valid SSH keys you'd like to keep, click Approve.
Note: If you're auditing your SSH keys due to an unsuccessful Git operation, the unverified key that caused the SSH key audit error will be highlighted in the list of SSH keys.
-
Open Terminal.
-
在后台启动 ssh 代理。
$ eval "$(ssh-agent -s)" > Agent pid 59566
� �据您的环境,您可能需要使用不同的命令。 例如,在启动 ssh-agent 之前,� 可能需要通过运行
sudo -s -H
� �访问,或者可能需要使用exec ssh-agent bash
或exec ssh-agent zsh
运行 ssh-agent。 -
Find and take a note of your public key fingerprint.
$ ssh-add -l -E sha256 > 2048 SHA256:274ffWxgaxq/tSINAykStUL7XWyRNcRTlcST1Ei7gBQ /Users/USERNAME/.ssh/id_rsa (RSA)
-
The SSH keys on GitHub Enterprise Server should match the same keys on your computer.
Warning: If you see an SSH key you're not familiar with on GitHub Enterprise Server, delete it immediately and contact � 的网站管理员 for further help. An unidentified public key may indicate a possible security concern.