TritonDataCenter/node-triton

keyId is not valid all the time

flik opened this issue · 1 comments

flik commented

I did the same steps generated new ssh keys but It is not able to find ssh keys.

here is output detail:

bash-3.2# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/var/root/.ssh/id_rsa): ~/.ssh
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Saving key "~/.ssh" failed: No such file or directory
bash-3.2# triton profile create
A profile name. A short string to identify this profile to the `triton` command.
name: sw1


The CloudAPI endpoint URL.
url: https://us-sw-1.api.joyent.com


Your account login name.
account: ashfaq


The fingerprint of the SSH key you want to use to authenticate with CloudAPI.
Specify the fingerprint or the index of one of the found keys in the list
below. If the key you want to use is not listed, make sure it is either saved
in your SSH keys directory (~/.ssh) or loaded into your SSH agent.

(No SSH keys were found.)

Hi @flik, the following line in the output of your ssh-keygen command suggests that the key you tried to generate was not saved:

Saving key "~/.ssh" failed: No such file or directory

Which would explain why triton didn't list it when running triton profile create .

If I am mistaken or overlooked some detail please reopen. Thanks.