why does a google compute VPS instance challenge for a ssh passphrase?

For this already generated dummy key I'm looking to add it to the instance below. What passphrase is being challenged for and by whom?

[email protected]:~$  [email protected]:~$ ssh-keygen -t rsa -b 768 -f ~/.ssh/gcloud -C thufir Generating public/private rsa key pair. Created directory '/home/thufir/.ssh'. Enter passphrase (empty for no passphrase):  Enter same passphrase again:  Your identification has been saved in /home/thufir/.ssh/gcloud. Your public key has been saved in /home/thufir/.ssh/gcloud.pub. The key fingerprint is: SHA256:3paYqopihdHBHzW8F9zT+yMaB/JHn6LiMAtvJbW3YPI thufir The key's randomart image is: +----[RSA 768]----+ |  .   oo. . .    | |   o . ..o o .   | |  . o . . . . .  | | . . . . + . o   | |  o     S + o o .| | . .   + O = = = | |  .  . oX * B o .| |.o    oo+E +     | |+ ....oo...      | +----[SHA256]-----+ [email protected]:~$  [email protected]:~$ nano .ssh/gcloud.pub  [email protected]:~$  [email protected]:~$ chmod 400 .ssh/gcloud.pub  [email protected]:~$  [email protected]:~$ cat .ssh/gcloud.pub  thufir:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDLehQya4f/rKixCbh2EIB0XvTocDlZnXds+xogHmYW6naXf/9+Uo27rnrnG9P69mQPCR85s9ZC+SfiuEUJ3CVn3XFrCr6wB3TBcjobRYgI62aQgCwyYx0Osc1yJfmxqRU= thufir  google-ssh {"userName":"thufir","expireOn":"2018-12-04T20:12:00+0000"} [email protected]:~$  [email protected]:~$ ssh-keygen -f .ssh/gcloud -y Enter passphrase:  ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDLehQya4f/rKixCbh2EIB0XvTocDlZnXds+xogHmYW6naXf/9+Uo27rnrnG9P69mQPCR85s9ZC+SfiuEUJ3CVn3XFrCr6wB3TBcjobRYgI62aQgCwyYx0Osc1yJfmxqRU= [email protected]:~$  [email protected]:~$ gcloud compute instances list Listed 0 items. [email protected]:~$  [email protected]:~$ gcloud compute instances create <instance_name> Created [https://www.googleapis.com/compute/v1/projects/<project>/zones/<zone>/instances/<instance_name>]. NAME  ZONE        MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP     STATUS <instance_name>   <zone>  n1-standard-1               <internal_ip>   <external_ip>  RUNNING [email protected]:~$  [email protected]:~$  [email protected]:~$ gcloud compute instances add-metadata <instance_name> --metadata-from-file ssh-keys=.ssh/gcloud.pub Updated [https://www.googleapis.com/compute/v1/projects/<project>/zones/<zone>/instances/<instance_name>]. [email protected]:~$  [email protected]:~$ nano .ssh/config  [email protected]:~$  [email protected]:~$ cat .ssh/config  Host gcloud   HostName <external_ip>   IdentityFile /home/thufir/.ssh/gcloud.pub   User thufir [email protected]:~$  [email protected]:~$ ll .ssh total 80 drwx------  2 thufir thufir  4096 Jul 29 02:42 ./ drwx------ 71 thufir thufir 36864 Jul 29 02:33 ../ -rw-rw-r--  1 thufir thufir    96 Jul 29 02:42 config -rw-------  1 thufir thufir   791 Jul 29 02:33 gcloud -r--------  1 thufir thufir   255 Jul 29 02:34 gcloud.pub [email protected]:~$  [email protected]:~$ ssh gcloud The authenticity of host '<external_ip> (<external_ip>)' can't be established. ECDSA key fingerprint is SHA256:ek2g0GTj6Dxtb4vvwTNXRJgRKXnaLjoWZRv1lZ4pJ30. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '<external_ip>' (ECDSA) to the list of known hosts. Enter passphrase for key '/home/thufir/.ssh/gcloud.pub':  Enter passphrase for key '/home/thufir/.ssh/gcloud.pub':  Enter passphrase for key '/home/thufir/.ssh/gcloud.pub':  Permission denied (publickey). [email protected]:~$  [email protected]:~$ ssh-keygen -f .ssh/gcloud -y Enter passphrase:  ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDLehQya4f/rKixCbh2EIB0XvTocDlZnXds+xogHmYW6naXf/9+Uo27rnrnG9P69mQPCR85s9ZC+SfiuEUJ3CVn3XFrCr6wB3TBcjobRYgI62aQgCwyYx0Osc1yJfmxqRU= [email protected]:~$  [email protected]:~$  

So far as I can verify, the passphrase I'm entering by hand is correct. However, when connecting to the Google cloud computer VPS instance, I'm being challenged for a passphrase.

Replay

This:

IdentityFile /home/thufir/.ssh/gcloud.pub

should be

IdentityFile /home/thufir/.ssh/gcloud

ssh is asking for a passphrase for garbage data.

Category: ssh Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.133 (s). 12 q(s)