我尝试从 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 被添加到已知主机列表中意味着什么?
答案1
SSH 服务器使用证书向客户端表明自己的身份。首次连接时,您将添加指纹,known_hosts
从那时起,如果有人窃取该域并尝试将您重定向到其他 IP,他将需要获取您保存的服务器证书副本,否则,ssh 将会因为服务器证书更改而终止。参考