I am brand new to GCP and I'm running a single VM instance for which I'm using gcloud to connect to.
I notice that when I connect from my laptop I ssh into the linux user mylaptop
and when I connect from my desktop I ssh into the the linux user mydesktop
.
I was hoping there was a way to ssh into mylaptop
from my desktop machine.
I have tried coping the .ssh
directory from my laptop to my desktop but this gave an error.
I have also experimented with su mylaptop
but I am running into issues with different python environments and missing packages when I use this approach.
Is there an easy gcloud solution for this?
Compute Engine -> VM Instances
I selectview gcloud command
from the drop down menu underconnect
on the VM instance. The command isgcloud beta compute --project 'my-project' ssh --zone 'us-east1-d' 'tensorflow-1-vm'
– mr3543 Oct 15 at 14:00.ssh
folder from my laptop to my desktop and tried to ssh into the VM. I thought perhaps that would allow me to log into themylaptop
user on the VM. The error I get when I try that issign_and_send_pubkey: signing failed: agent refused operation
– mr3543 Oct 15 at 14:09