09-22-2023 12:45 AM
Hi,
Deploying a 8000v in GCP from the marketplace. Everything deploys fine, but as im trying to SSH to it, i cant get the SSH key to work. I have used the following to create the key:
ssh-keygen -t rsa -f ~/.ssh/test -C adminuser
I pasted in the contents of the test.pub file to the ssh instance key for the 8000v:
ssh-rsa <long key> adminuser
When i try to SSH to it i get the following:
debug1: Authentications that can continue: publickey,keyboard-interactive,password
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug3: send packet: type 50
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: receive packet: type 60
debug2: input_userauth_info_req: entering
debug2: input_userauth_info_req: num_prompts 1
(adminuser@x.x.x.x) Password:
So it apparently disables the publickey-method after "we did not send a packet, disable method". Anyone seen this before? Has gcloud not copied the key into the 8000v?
09-29-2023 02:08 AM - edited 09-29-2023 10:20 PM
Hii, myenvoy
Here one possibility is that the SSH key was not properly copied into the 8000v instance during deployment. To troubleshoot this, you can try manually copying the public key to the instance by logging in via the console and adding it to the authorized_keys file in the ~/.ssh directory.
10-01-2023 11:33 PM
OK, but if i try to use the console, i get the regular console password-prompt as on any ios-xe device. This password isnt set, so i cant get to the console.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide