首页 文章

运行命令后,Gcloud ssh权限被拒绝

提问于
浏览
0

我收到Permission denied(publickey,gssapi-keyex,gssapi-with-mic) . 错误:(gcloud.compute.ssh)[/ usr / bin / ssh]退出并返回代码[255] .

运行后出错:gcloud compute ssh instance-1 --zone us-east1-d --command“tar -xf archive.tar”

我可以运行--command“ls -al”这很好 .

2 回答

  • 0

    看起来像你运行命令的用户 . 如果您运行 gcloud compute ssh instance-1 --zone us-east1-d 并发出命令 tar -xf archive.tar 就是这种情况,您应该会看到相同的错误 . 你呢?

  • 0

    做了一个解决方案 . 而不是使用tar我根据用户请求发送文件夹 .

相关问题