curl常用命令
1. 获取公网ip1curl cip.cc 2. PowerShell设置curl代理123456$env:http_proxy = "http://127.0.0.1:10808" $env:https_proxy = "http://127.0.0.1:10808"echo $env:http_proxy echo $env:https_proxy$env:http_proxy = "" $env:https_proxy = ""
远程连接服务器常用指令
1. ssh-keygen — 生成 SSH 密钥对功能生成用于公钥认证的密钥对(私钥 + 公钥)。 基本语法1ssh-keygen [-t type] [-b bits] [-C comment] [-f filename] 常用参数 参数 说明 -t type 密钥类型:ed25519(推荐)、rsa、ecdsa -b bits 密钥长度(仅 RSA 有效,建议 ≥4096) -C comment 注释(通常为邮箱) -f filename 指定保存路径 -N passphrase 设置密钥密码(空值表示无密码) -R hostname 从 known_hosts 中删除指定主机的旧公钥记录(不写入新密钥,仅清理) 示例123456789# 生成密钥ssh-keygen -t ed25519 -C "admin@example.com"ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa_backup -N ""# 清理已变更的主机密钥(如重装服务器后)ssh-keyg...