debian - Google Cloud Platform: ssh from VM_1 in project_A to VM_2 in project_B -


i trying connect virtual machine vm_1 in project_a virtual machine vm_2 in project_b. bot on debian linux.

steps did:

on vm_1 project_a

generated private , public keys

  1. ssh-keygen -t rsa -f ~/.ssh/my-ssh-key -c example-user
  2. $ chmod 400 ~/.ssh/my-ssh-key

in browser, metadata page of project_b.

  1. clicked ssh keys show list of project-wide public ssh keys , added public keys created vm_1 project_a

now keys added tried ssh virtual machine vm_1 on project_a vm_2 on project_b

it giving error

permission denied (publickey)

please advise

it seems bug can not apply public key particular vm in project. able connect applying public ssh key whole project.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -