https://github.com/mpriscella/ssh-reg
A ssh config management tool.
https://github.com/mpriscella/ssh-reg
command-line-tool golang ssh ssh-config
Last synced: 4 months ago
JSON representation
A ssh config management tool.
- Host: GitHub
- URL: https://github.com/mpriscella/ssh-reg
- Owner: mpriscella
- License: mit
- Created: 2015-05-12T15:53:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T14:58:39.000Z (almost 8 years ago)
- Last Synced: 2024-06-19T16:47:13.282Z (about 2 years ago)
- Topics: command-line-tool, golang, ssh, ssh-config
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-reg
An SSH config management tool written in go.
# Installation
Download the compiled [binary](https://github.com/mpriscella/ssh-reg/releases/download/v1.1.1/ssh-reg) to a directory in your $PATH (like `/usr/local/bin`).
# Examples
`$ ssh-reg add development dev.mpriscella.com -i ~/.ssh/id_rsa -u mpriscella -e "Port=8989"`
```
$ ssh-reg describe development
> Host development
> HostName dev.mpriscella.com
> IdentityFile /home/mpriscella/.ssh/id_rsa
> User mpriscella
> Port 8989
```
```
$ ssh-reg update development staging.mpriscella.com -e "Port="
> Host development
> HostName staging.mpriscella.com
> IdentityFile /home/mpriscella/.ssh/id_rsa
> User mpriscella
```
````
usage: ssh-reg [] [ ...]
ssh-reg is a program to manage a user's ssh config file.
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.
Commands:
help [...]
Show help.
add []
Add host entry.
-i, --identity=IDENTITY The path to the identity key file.
-u, --user=USER The SSH user.
-f, --force Overwrite the specified host.
-e, --extra=EXTRA Add Extra Keyword.
copy
Copy host entry.
describe
Describe host entry.
list
List all available host entries.
move
Rename host entry.
remove
Remove host entry.
update [] []
Update host entry.
-i, --identity=IDENTITY The path to the identity key file.
-u, --user=USER The SSH User.
-e, --extra=EXTRA Keyword=Value.
````