SSH/错误排查

来自OSSmedia
< SSH
Brucekomike讨论 | 贡献2024年3月1日 (五) 22:22的版本 (创建页面,内容为“== scp broken pipes == 通过被访问端的日志可以找到相关字段 journalctl --since -1h 找到相关字段 ssh_dispatch_run_fatal: Connection from user XXXXXXXXX port 50604: message authentication code incorrect 解决方案 通过 ssh -Q mac查看可用的 MAC加密方式 ssh -Q mac 随机选一个,比如说 hmac-sha2-512-etm@openssh.com 添加到ssh设置中 # 临时方法 在ssh命令中添加以下字段 -o MACs=hmac-sha2-512-etm@open…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

scp broken pipes

通过被访问端的日志可以找到相关字段
journalctl --since -1h
找到相关字段
ssh_dispatch_run_fatal: Connection from user XXXXXXXXX port 50604: message authentication code incorrect

解决方案

通过 ssh -Q mac查看可用的 MAC加密方式
ssh -Q mac
随机选一个,比如说
hmac-sha2-512-etm@openssh.com
添加到ssh设置中
# 临时方法 在ssh命令中添加以下字段
-o MACs=hmac-sha2-512-etm@openssh.com
# 持续时间长一点的方法 在~/.ssh/config 中写入
MACs hmac-sha2-512-etm@openssh.com