因此,我只是试用GCloud服务,并尝试通过ssh连接。在第一时间我忘记了我的Mac的用户名,所以我没有错做这个:SSH无法连接到Google Cloud
doe-MacBook-Pro:Documents does$ ssh -i ~/.ssh/google_compute_engine [email protected]
Warning: Identity file /Users/does/.ssh/google_compute_engine not accessible: No such file or directory.
The authenticity of host '111.111.111.111 (111.111.111.111)' can't be established.
ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '111.111.111.111' (ECDSA) to the list of known hosts.
Permission denied (publickey).
后来我知道我的用户名,我想:
doe-MacBook-Pro:Documents does$ ssh -i ~/.ssh/google_compute_engine [email protected]
Warning: Identity file /Users/does/.ssh/google_compute_engine not accessible: No such file or directory.
Permission denied (publickey).
,这让我的错误。你能告诉我如何解决这个问题?
我该怎么做? – yogieputra
在你的主目录中,执行'ls -l .ssh',看看这个文件是否存在,以及它是否检查了它的权限。 –
@Liverpool这是一个文件权限的快速教程:http://www.tutorialspoint.com/unix/unix-file-permission.htm –