scaleway-cli icon indicating copy to clipboard operation
scaleway-cli copied to clipboard

Don't upload an existing ssh public key

Open arthurzenika opened this issue 3 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Command attempted

scw init

Expected Behavior

When

We found an SSH key in ~/.ssh/id_ed25519.pub. Do you want to add it to your Scaleway account? (Y/n): y

if the found ssh key has already been uploaded and named in the web console, don't uploaded a second time.

Actual Behavior

The scw init was successful but I now have two identical ssh keys (with different ids):

Screenshot from 2022-07-18 16-45-11

More info

ubuntu 22.02 

scw version
Version    2.4.0
BuildDate  2021-10-28T08:36:16
GoVersion  go1.17.2
GitBranch  new-release
GitCommit  e7f4f094
GoArch     amd64
GoOS       linux

arthurzenika avatar Jul 18 '22 14:07 arthurzenika