An open API service indexing awesome lists of open source software.

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.

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.
````