VS code 本地推送github添加SSH设置

本地VS Code 因为网络环境问题,必须设置SSH才能玩

以下是记录设置SSH步骤 跟做做即可完成。本地推送到远端或者拉去

注意远端有更改 必须先拉下来合并才能推送上去。

你本地电脑里的代码 = 版本 A

GitHub 云端的代码 = 版本 B

B 比 A 新!

Git 的安全规则是:

你不能直接把旧版本推上去覆盖新版本!

它怕你不小心把别人写的代码、云端新文件全部删掉,所以强制拦着你。

PS E:\riscv-k210> ssh-keygen -t ed25519 -C "mygithub"

Generating public/private ed25519 key pair.

Enter file in which to save the key (C:\Users\Administrator/.ssh/id_ed25519):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in C:\Users\Administrator/.ssh/id_ed25519.

Your public key has been saved in C:\Users\Administrator/.ssh/id_ed25519.pub.

The key fingerprint is:

SHA256:9B5OpifiHCoKd=UPuMphFewJrQonSv1Y mygithub

The key's randomart image is:

| |

|... . |

|ooo . . . |

|o .=... S = |

|...=+= E * . |

|.=+= |

|o.B=o |

|.o++.=+. |

PS E:\riscv-k210> cat ~/.ssh/id_ed25519.pub

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5A====U439/gl4nunwih7CJScNl1QO07SV6O1 mygithub

PS E:\riscv-k210> ssh -T git@github.com

Warning: Permanently added the ECDSA host key for IP address '20.205.243.166' to the list of known hosts.

Hi yuzi40277738! You've successfully authenticated, but GitHub does not provide shell access.

相关推荐
weipt9 小时前
利用wsl给windows电脑上安装一个ubuntu
linux·运维·ubuntu
jarreyer9 小时前
【软件操作】加快资源管理器打开速度
运维
楚疏笃9 小时前
linux下给OpenCloudOS根目录扩容
linux·运维·服务器
dog2509 小时前
网络的时延抖动
linux·运维·网络
程序员-Benothing9 小时前
Linux 软件包管理:yum / apt / dnf 命令使用全解析
linux·运维·服务器
DevangLic10 小时前
opencode go要完蛋了吗
运维·学习
SEO_juper10 小时前
你的服务器正在被 AI 爬虫“白嫖“带宽:2026 用日志把 Googlebot 和 AI 洪流分开算账(附脚本)
运维·人工智能·爬虫·python·chatgpt·seo
志栋智能10 小时前
超自动化巡检报告:从数据表格到智能洞察
运维·自动化
竣达技术10 小时前
UPS 供电风险保护方案网络远程控制:免代理 SSH/Telnet UPS 安全关机方案
网络·安全·ssh
芯飞云10 小时前
芯飞云服务器日常使用体验:从配置选型到实际负载的技术分析
运维·服务器