摘要: 命令行工具默认是不使用系统代理的,因此即便我们在代理工具中启用了系统代理选项,命令行工具依然不会使用代理通信。 用 curl 或 wget 下载 GitHub 上存在的文件时出现 443 错误就是没有挂代理导致的。 使用环境变量(推荐) 很多 Linux 和 Unix 命令行工具(比如 curl,w 阅读全文
posted @ 2024-04-19 17:08 Undefined443 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 上传公钥 如果远程计算机是类 Unix 系统,使用下面这条命令: Get-Content $Env:USERPROFILE\.ssh\id_rsa.pub | ssh USER@HOST "cat >> .ssh/authorized_keys" Troubleshooting Bad Permis 阅读全文
posted @ 2024-04-19 17:01 Undefined443 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 使用命令行安装 安装 OpenSSH 服务端和客户端 在管理员终端下运行以下命令: # 检查 OpenSSH 可用性 Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' # 安装 OpenSSH 客户端 Add-Win 阅读全文
posted @ 2024-04-19 16:58 Undefined443 阅读(35) 评论(0) 推荐(0) 编辑