I am using gcp vm machine instance N1-standard 8V-30GB and N1-standard 4V-15GB
- os-Debian
- version – Debian GNU/Linux 10(buster)
this issue i am facing from last 1 month.
public access permission denied is one of message i am seeing while trying to access from cloud shell
I had run command chmod 777 <home directory>
earlier.
2
Answers
From owner's account i tried to access instance-1 but owner is also not able to connect to the instance-1.
owner of project got this pop-up on ssh window [1]: https://i.stack.imgur.com/y2fzC.jpg
I observe that in fresh new created instance if i add add some file like git clone repo, after that if i restart it then i am able to connect SSH again.
I’ve tried to reproduce your steps and was able to solve this issue.
Please have a look at my steps below:
instance-1
:instance-1
boot disk:instance-1-snapshot-disk
to the VM instanceinstance-2
:then
after that
.ssh
directory: 700drwx------
.pub
file): 644-rw-r--r--
id_rsa
): 600-rw-------
drwxr-xr-x
unmount the disk when you finish:
instance-1-snapshot-disk
from the VM instanceinstance-2
:instance-1
.In addition, please have a look at the documentation Troubleshooting SSH section Inspect the VM instance without shutting it down to find more details.