Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

abcang/add-sshkey-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

add-sshkey-remote

Script to add the SSH key to the service.

Support

  • SSH Server
  • Github
  • Bitbucket
  • GitLab

Require

  • curl

Usage

Usage:
    add-sshkey-remote [command] [args]

Command:
ssh [user@]<hostname> [-p|--path <path>]                                        adding ssh keys to authorized_keys on remote host
github <user> [-l|--label <label>] [-p|--path <path>]                           adding ssh keys to github
bitbucket <user> [-l|--label <label>] [-p|--path <path>]                        adding ssh keys to bitbucket
gitlab <user> [-l|--label <label>] [-p|--path <path>] [-u|--url <gitlab_url>]   adding ssh keys to gitlab

Example:

$ ./add-sshkey-remote github abcang -l MainPC -p ~/.ssh/id_rsa.pub

For GitLab:

$ ./add-sshkey-remote gitlab abcang --url https://gitlab.mydomain.com

Use with curl:

$ curl -fsSL https://raw.githubusercontent.com/abcang/add-sshkey-remote/master/add-sshkey-remote | bash -s github abcang

License

MIT License

About

Script to add the SSH key to the service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages