我收到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”这很好 .
看起来像你运行命令的用户 . 如果您运行 gcloud compute ssh instance-1 --zone us-east1-d 并发出命令 tar -xf archive.tar 就是这种情况,您应该会看到相同的错误 . 你呢?
gcloud compute ssh instance-1 --zone us-east1-d
tar -xf archive.tar
做了一个解决方案 . 而不是使用tar我根据用户请求发送文件夹 .
2 回答
看起来像你运行命令的用户 . 如果您运行
gcloud compute ssh instance-1 --zone us-east1-d
并发出命令tar -xf archive.tar
就是这种情况,您应该会看到相同的错误 . 你呢?做了一个解决方案 . 而不是使用tar我根据用户请求发送文件夹 .