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

https://github.com/meteran/project_s


https://github.com/meteran/project_s

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Project S contains program `s` to store and manage the ssh sessions.

## Installation:
```bash
git clone https://Breughel@bitbucket.org/Breughel/project_s.git
cd project_s
sudo ./install.sh
```

## Usage:
```bash
[local]$ s add my_alias user@remote_address
address saved
do you want add your ssh kyes to remote server?(y/n): n
[local]$ s ls
avaiable addresses:
my_alias user@remote_address
[local]$ s run my_alias
user@remote_address password:
[user@remote_address]$ logout
[local]$ s rm my_alias
[local]$ s ls
avaiable addresses:
[local]$ s add my_alias user@remote_address
address saved
do you want add your ssh kyes to remote server?(y/n): n
[local]$ s cp my_alias
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/user/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
user@remote_address password:

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'user@remote_address'"
and check to make sure that only the key(s) you wanted were added.
[local]$ s run my_alias
[user@remote_address]$ logout
[local]$ s add my_alias2 user2@remote_address
address saved
do you want add your ssh kyes to remote server?(y/n): y
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/user/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
user2@remote_address password:

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'user2@remote_address'"
and check to make sure that only the key(s) you wanted were added.
[local]$ s run my_alias2
[user2@remote_address]$ logout
[local]$
```