Gcloud SSH

Options
robjmills
robjmills
Community Member

I have the exact same problem discussed here, which was closed, but without a working solution https://1password.community/discussion/134017/difficulty-to-force-glcoud-compute-to-use-only-the-ssh-agent-sock

In essence, I have a working Gcloud SSH key. I've imported the SSH key into 1password, and if I SSH to gcloud i'm prompted to authenticate with 1password. However, if I remove the ssh key from my ~/.ssh directory, then when I attempt to SSH into gcloud i'm warned that the key is missing and prompted to create one.

❯ gcloud compute ssh my-host --zone europe-west1-b
WARNING: The private SSH key file for gcloud does not exist.
WARNING: The public SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):

The other question mentions using "--plain" to work around this, but doesn't explain further. What am I missing here?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

This discussion has been closed.