mac上用git push,突然出现这个错误
dyld[3983]: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: <ED9CAD92-FB1A-39F7-B575-260CED4DB073> /usr/local/Cellar/openssh/7.9p1/bin/ssh
Reason: tried: '/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib' (no such file), '/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib' (no such file), '/usr/local/lib/libcrypto.1.0.0.dylib' (no such file), '/usr/lib/libcrypto.1.0.0.dylib' (no such file, not in dyld cache)
[1] 3983 abort ssh --version
查了一下openssl版本,发现可能是昨天brew update了一下导致:
解法:把openssh也升级下
arch -x86_64 brew install openssh