<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Git on BlueberryPy</title><description>Recent content in Git on BlueberryPy</description><link>https://blueberrypy.netlify.app/tags/git/</link><language>en-us</language><item><title>Github 连接问题之 REMOTE HOST IDENTIFICATION HAS CHANGED!</title><link>https://blueberrypy.netlify.app/post/github-remote-host-identification/</link><guid isPermaLink="true">https://blueberrypy.netlify.app/post/github-remote-host-identification/</guid><description>&lt;h1 id=&quot;缘起&quot;&gt;缘起&lt;/h1&gt;
&lt;p&gt;今天在 git bash 命令行往 github push 代码的时候突然收到大大的警告信息，如下：&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in **************************** to get rid of this message.
Offending RSA key in ****************************:2
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;这个仓库是用 ssh 连接作为 remote 的。&lt;/p&gt;
&lt;h1 id=&quot;问题在哪&quot;&gt;问题在哪&lt;/h1&gt;
&lt;p&gt;遂 google 之，发现就在今天 github 的 blog 发了 &lt;a href=&quot;https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key&quot;&gt;We updated our RSA SSH host key&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;原来github在今天下午1点左右把他们的 RSA SSH 主机 key 给换了。&lt;/p&gt;
&lt;p&gt;出现上面那个错误说明我在我的 ~/.ssh/known_hosts 里有过期的那个 key 的公钥。&lt;/p&gt;
&lt;h1 id=&quot;解决方法&quot;&gt;解决方法&lt;/h1&gt;
&lt;p&gt;blog中给出的解决方法很简单，把 &lt;code&gt;known_hosts&lt;/code&gt; 里的过期 key 删掉就行了：&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; ssh-keygen&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; -R&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; github.com&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;#Host github.com found: line 2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;********&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;/.ssh/known_hosts updated.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Original&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; contents&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; retained&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; as&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; **********&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;/.ssh/known_hosts.old&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后进行任意一项连接到 remote 的操作，比如 git fetch，就会提示把新的公钥添加到我的 &lt;code&gt;known_hosts&lt;/code&gt; 里，当然选 yes：&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The authenticity of host ‘github.com (140.82.121.4)’ can’t be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘github.com’ (ED25519) to the list of known hosts.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;问题解决。&lt;/p&gt;
&lt;h1 id=&quot;后记&quot;&gt;后记&lt;/h1&gt;
&lt;p&gt;最新的公钥在 github docs 里就可以找到 &lt;a href=&quot;https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints&quot;&gt;GitHub’s SSH key fingerprints&lt;/a&gt; 。&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;github.com&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; ssh-ed25519&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;github.com&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; ecdsa-sha2-nistp256&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;github.com&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; ssh-rsa&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;— 全文完 —&lt;/p&gt;
</description><pubDate>Fri, 24 Mar 2023 13:42:41 GMT</pubDate><category>git</category><category>github</category><category>ssh</category><category>git</category><category>bash</category><author>Zeyang Lin</author></item><item><title>My Visual Studio Code extensions for python &amp; other development</title><link>https://blueberrypy.netlify.app/post/my-vs-code-extensions/</link><guid isPermaLink="true">https://blueberrypy.netlify.app/post/my-vs-code-extensions/</guid><description>&lt;h3 id=&quot;python&quot;&gt;Python&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.python&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;pylance&quot;&gt;Pylance&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.vscode-pylance&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;black-formatter&quot;&gt;Black Formatter&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.black-formatter&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;flake8&quot;&gt;Flake8&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.flake8&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;isort&quot;&gt;isort&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.isort&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;jupyter&quot;&gt;Jupyter&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-toolsai.jupyter&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;data-wrangler&quot;&gt;Data Wrangler&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-toolsai.datawrangler&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;mypy-type-checker&quot;&gt;Mypy Type Checker&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.mypy-type-checker&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;pylint&quot;&gt;Pylint&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-python.pylint&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;ruff&quot;&gt;Ruff&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;charliermarsh.ruff&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;ty&quot;&gt;ty&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;astral-sh.ty&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;autodocstring-vscode-python-docstring-generator&quot;&gt;autoDocstring: VSCode Python Docstring Generator&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;njpwerner.autodocstring&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;python-indent&quot;&gt;Python Indent&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;kevinrose.vsc-python-indent&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;sublime-text-keymap-and-settings-importer&quot;&gt;Sublime Text Keymap and Settings Importer&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-vscode.sublime-keybindings&lt;/code&gt;
&lt;strong&gt;note that&lt;/strong&gt; it automatically imports sublime key bindings after installation, although it also prompts you to explicitly import a sublime settings file (while could be ignored).&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;docker&quot;&gt;Docker&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-azuretools.vscode-docker&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;kubernetes&quot;&gt;Kubernetes&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-kubernetes-tools.vscode-kubernetes-tools&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;remote---ssh&quot;&gt;Remote - SSH&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-vscode-remote.remote-ssh&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;remote---containers&quot;&gt;Remote - Containers&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ms-vscode-remote.remote-containers&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;gitlens&quot;&gt;GitLens&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;eamodio.gitlens&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;vscode-json&quot;&gt;vscode-json&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;andyyaldoo.vscode-json&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;yaml&quot;&gt;YAML&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;redhat.vscode-yaml&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;even-better-toml&quot;&gt;Even Better TOML&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;tamasfe.even-better-toml&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;rainbow-csv&quot;&gt;Rainbow CSV&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;mechatroner.rainbow-csv&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;prettier---code-formatter&quot;&gt;Prettier - Code formatter&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;esbenp.prettier-vscode&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;prettier-sql-vscode&quot;&gt;Prettier SQL VSCode&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;inferrinizzard.prettier-sql-vscode&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;sql-formatter&quot;&gt;SQL Formatter&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;adpyke.vscode-sql-formatter&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;mojo&quot;&gt;Mojo&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;modular-mojotools.vscode-mojo&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;amazon-q&quot;&gt;Amazon Q&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;amazonwebservices.amazon-q-vscode&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;baidu-comate&quot;&gt;Baidu Comate&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;baiducomate.comate&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;cline&quot;&gt;Cline&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;saoudrizwan.claude-dev&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;codegeex&quot;&gt;CodeGeeX&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;aminer.codegeex&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;windsurf-plugin-formerly-codeium&quot;&gt;Windsurf Plugin (formerly Codeium)&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;codeium.codeium&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;gemini-code-assist&quot;&gt;Gemini Code Assist&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;google.geminicodeassist&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;google-cloud-code&quot;&gt;Google Cloud Code&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;googlecloudtools.cloudcode&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;github-copilot&quot;&gt;Github Copilot&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;github.copilot&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;github-copilot-chat&quot;&gt;Github Copilot Chat&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;github.copilot-chat&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;iflycode&quot;&gt;iFlyCode&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;anhuizhuojiantechnology.iflycode&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;tongyi-lingma&quot;&gt;TONGYI Lingma&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;alibaba-cloud.tongyi-lingma&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;trae-aiformerly-marscode-coding-assistant&quot;&gt;Trae AI(formerly MarsCode): Coding Assistant&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;marscode.marscode-extension&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;hr&gt;
&lt;h3 id=&quot;github-theme&quot;&gt;GitHub Theme&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;github.github-vscode-theme&lt;/code&gt;&lt;/p&gt;
</description><pubDate>Mon, 31 May 2021 01:47:01 GMT</pubDate><category>python</category><category>python</category><category>vscode</category><category>IDE</category><category>git</category><category>ssh</category><category>AI</category><author>Zeyang Lin</author></item></channel></rss>