Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9788

Remove ssh keys in github from command line

$
0
0

I'm creating a script in bash to install and configure all my workspace. How do I remove my ssh keys in github from command line?

I already search about and found this command, but this is specifically for deploy and not remove.

curl -u 'user:password' --data '{"title":"My SSH","key":"'"$(cat ~/.ssh/id_rsa.pub)"'"}' https://api.github.com/user/keys

The code above works perfectly but how do I remove (if exists) instead of deploy?


Viewing all articles
Browse latest Browse all 9788

Latest Images

Trending Articles



Latest Images