DEV Community

Discussion on: How to Setup Multiple Ssh Keys for Multiple Github/Bitbucket accounts.

Collapse
 
punit__d profile image
punit • Edited

Nice post. I've created a Node CLI last month for exact same purpose. It is used for generating ssh keys for using multiple github/bitbucket/gitlab accounts like you've mentioned in the post by answering few questions CLI asks you so you don't have to type those commands when setting this up.

Github repo url : github.com/punitda/ssh-git
npm package url : npmjs.com/package/ssh-git

Though after keys are generated you've to add those to account manually. Working on electron app which will make this process even much more easier.

Note : It(cli) works on Linux(though not thoroughly tested) and MacOS for now. Haven't looked into windows part yet but will soon add support for that.

Collapse
 
shostarsson profile image
Rémi Lavedrine

That is nice.
Nevertheless, I am not sure if I would let a third (untrusted) party app add my SSH keys to the services.
It is too sensitive information to leave it to a third party app and then potentially reduce my security. 😄

Collapse
 
punit__d profile image
punit

Agree. But, what if,

  1. It is open source?
  2. It doesn't stores anything locally. It generates ssh keys, obtains one time token for publishing keys to github/bitbucket/gitlab(doesn't stores it locally) and adds generated keys to your account?
Thread Thread
 
shostarsson profile image
Rémi Lavedrine

Yes, I am sure that it would be very legit and doesn't do anything wrong.
But as a Security person, I can't trust this kind of software. But it's just me. 😄
I am sure that this piece of software would be very useful to a a lot that can trust it. 😉

Collapse
 
akashshyam profile image
Akash Shyam

This was an absolute lifesaver for me..... thank you a lot