https://github.com/gengxiankun/ssh-am
SSH ACCOUNT MANAGEMENT
https://github.com/gengxiankun/ssh-am
brew cli macos scp ssh
Last synced: 22 days ago
JSON representation
SSH ACCOUNT MANAGEMENT
- Host: GitHub
- URL: https://github.com/gengxiankun/ssh-am
- Owner: gengxiankun
- License: apache-2.0
- Created: 2017-06-29T09:53:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T08:23:37.000Z (about 4 years ago)
- Last Synced: 2025-05-13T00:05:44.931Z (22 days ago)
- Topics: brew, cli, macos, scp, ssh
- Language: Shell
- Homepage:
- Size: 92.8 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
- License: LICENSE
Awesome Lists containing this project
README
# SSH-AM
SSH ACCOUNT MANAGEMENTssh-am is a macOS Command Line Tools for managing server account information, built-in ssh and scp commands. And support for a variety of login methods of automated authorization (including the authorization method of google secondary authentication).
[English](README.md) | [中文](README-zh.md)
## Installation
```bash
brew install gengxiankun/tap/ssh-am
```
> Tab Completion: echo "source ssh-am completion" >> ~/.bash_profile## Commands
add add an account
modify modify an account
delete delete an account
list view account list
find view account details
ansible export account data in ansible format
completion automatically replenish account name
--scp the default operation is ssh, and --scp is specified for scp operation.
-h|--help view help
## Options
-n account alias
-i IP
-u username
-p login password / google secondary authentication key
-P the port number
-t the type of login authorization, the default is password. If you choose Google secondary authentication, you can specify it as 'ga'
-k specify the key mode authorization by -t 'key'. This parameter passes the key address.## How to use
### Log in to the server named server_aaa using ssh
`ssh-am server_aaaa`### Use the scp command to pull the demo file or directory on the servar_aaa server to the local
`ssh-am --scp server_aaaa:~/demo ./`### Add a server named server_bbb
`ssh-am add -n server_bbb -uroot -i 192.168.1.1 -p123123 `### Modify the password for server_bbb
`ssh-am modify server_bbb -pbbb123123`### Delete the server account named server_bbb
`ssh-am delete server_bbb`### View to add a list of servers
`ssh-am list`### View the server details named server_aaa (note that it will display the password)
`ssh-am find server_aaa`### Export account data in ansible format
`ssh-am ansible`### Implement autofill server name
`echo "source ssh-am completion" >> ~/.bash_profile`### Ssh-am help information
`ssh-am -h` or `ssh-am --help`