GitHub推送失败解决记录
分类:
技术
简介:报错部分代码remote: Invalid username or token. Password authentication is not supported for Git operations.解决步骤生成GitHub专用密钥 ssh keygen t ed25519 C "你的GitHub邮箱" f ~/.ssh/id_ed25519_github查看并复制公钥 cat ~/.ssh/id_ed25519_github.pub在GitHub上面保存公钥测试连接 ssh T git@github.com其他错误SSH 服务未启动或端口被屏蔽Connection closed by...port 22解决步骤编辑 ~/.ssh/config 文件(如果没有,可以创建一个) nano ~/.ssh/config添加以下内容 Host github.com
HostName ssh.github.com
User git
Port 443SSH 密钥未正确加载、GitHub 没有正确添加公钥、或者配置不正确等git@ssh.github.com: Permission denied (publickey)解决步骤先使用下面的命令查看 SSH 代理是否已加载你的私钥 ssh add l ssh add ~/.ssh/id_ed25519_github
cursor脚本
分类:
技术
简介:Maccurl fsSL https://raw.githubusercontent.com/yeongpin/cursor free vip/main/scripts/install.sh o install.sh && chmod +x install.sh && ./install.shwindowsirm https://raw.githubusercontent.com/yeongpin/cursor free vip/main/scripts/install.ps1 | iex
SSH无需重复输入密码直接连接
分类:
技术
简介:步骤生成本机ssh公钥ssh keygen t ed25519
//这里的ed25519为加密方式,包括 RSA、DSA、ECDSA 和 ED25519 等。
ls .ssh
cat .ssh/id_ed25519.pub在服务器保存公钥vim .ssh/authorized_keys