> git push origin master:master /Users/xxx/.ssh/config line 6: invalid time value. /Users/xxx/.ssh/config line 7: integer value invalid. /Users/xxx/.ssh/config line 8: unsupported option /Users/xxx/.ssh/config: terminating, 3 bad configuration options fatal: Could not read from remote repository.
原因分析
排查后发现,问题出在 ~/.ssh/config 配置文件中。
此前使用 VS Code Remote-SSH 插件自带的 Add New SSH Host 功能添加远程主机时,插件自动重写了 SSH 配置文件,导致部分配置项与行尾注释之间的空格丢失。