我试图从 github 克隆 repo(看看 Golang 和 react 如何协同工作)
git clone [email protected]:cbrake/goreact.git $GOPATH/src/github.com/cbrake/goreact
Cloning into '/home/miki/go/src/github.com/cbrake/goreact'...
The authenticity of host 'git.bec-systems.com (159.65.229.70)' can't be established.
ECDSA key fingerprint is SHA256:CzPCk6/fsCvAD1xG9GiHswVWHyOvB0/UD7da7CWzTTk.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'git.bec-systems.com,159.65.229.70' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
对我有什么影响吗?git被添加到已知主机列表中是什么意思?
SSH 服务器使用证书向客户端标识自己。当您第一次连接
known_hosts
时,如果有人窃取该域并尝试将您重定向到其他 ip,您将从那时开始添加指纹,他将需要获取您保存的服务器证书的副本,否则 ssh 将因服务器证书更改而死。参考