cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
385
Views
0
Helpful
2
Replies

SSH to Cisco 8000v in GCP

trondaker
Level 1
Level 1

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?

2 Replies 2

Ellisarcher
Level 1
Level 1

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.

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.