求mac ssh如何連接谷歌云vm的具體步驟
谷歌云提供的在線shell
一.在本地創(chuàng)建秘鑰
ssh-keygen-t rsa-f[your key position]-C[your name]
例如:ssh-keygen-t rsa-f~/Documents/key-C jason
二.把密匙貼到谷歌云
打開(kāi)剛才生成的公匙cat/Users/jason/Documents/key.pub
然后把相關(guān)內(nèi)容復(fù)制到谷歌云中
三.連接
ssh-i/Users/jason/Documents/key jason your vm IP
理論上來(lái)說(shuō)這時(shí)候連接就可以了,但是我報(bào)了一個(gè)錯(cuò)誤
ECDSA host key for yourIP has changed and you have requested strict checking.
它說(shuō)我們外部IP變了
這時(shí)候我們通過(guò)命令:
ssh-keygen-R yourIP
問(wèn)題解決