Compare commits
38 Commits
jeff-99/ma
...
master
Author | SHA1 | Date |
---|---|---|
ivan | 8ab5a13cca | |
ivan | fc9640a491 | |
Anton Samofal | 8ee868ab69 | |
ivan | 2c5c87f555 | |
ivan | cd501bdc1e | |
ivan | 37b3926880 | |
ivan | abb2fcfa4c | |
ivan | 7d7e2ff775 | |
ivan | eddfedb6c3 | |
ivan | e11978957f | |
ivan | 032b4b1ab0 | |
ivan | 7fa8bdb6f9 | |
ivan | 10ca6ad15b | |
ivan | 48d491312a | |
ivan | 0bbf06340a | |
ivan | ed10aa8f03 | |
ivan | 0fd4ff9b74 | |
ivan | a39cd7ae68 | |
ivan | ba9fa303ba | |
ivan | 1b9acdcc4a | |
ivan | b7fdcf119d | |
ivan | b48081be65 | |
ivan | 32013bdb8d | |
ivan | 450b30b196 | |
ivan | 8e930115a5 | |
ivan | ec8a2ca14a | |
ivan | 9c361bbe00 | |
ivan | 37a20a0c48 | |
ivan | e430142fdc | |
ivan | c8069554eb | |
GHPS | 6fdcf8ae6d | |
ivan | c528af6414 | |
GS | 9ea667f201 | |
ivan | 2c8f072499 | |
GHPS | 68bb493c44 | |
ivan | e75a733d0b | |
ivan | c057e1e8ed | |
ivan | 0266d29308 |
21
LICENSE
21
LICENSE
|
@ -4,27 +4,26 @@ sshch is released under the DWTW license
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under the terms of the Do What Thou Wilt License.
|
This program is free software; you can redistribute it and/or modify it under the terms of the Do What Thou Wilt License.
|
||||||
|
|
||||||
DO WHAT THAU WILT
|
Boundless Public License
|
||||||
|
DO WHAT THOU WILT
|
||||||
TO PUBLIC LICENSE
|
TO PUBLIC LICENSE
|
||||||
|
|
||||||
Version 2.5
|
Version 2.55
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
|
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it in full or in part is allowed without any restrictions.
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
0. Do what thou wilt shall be the whole of the Law.
|
0. Do what thou wilt shall be the whole of the Law.
|
||||||
|
|
||||||
Anyone is allowed to copy and distribute the copies of this license agreement in whole or in part, as well as modify it without any other limitations.
|
DWTWL – a license with a single requirement: DO WHAT THOU WILT
|
||||||
|
|
||||||
DWTW – a license with a single requirement: DO WHAT THOU WILT
|
The license provides more freedom than any other one (such as GPL or BSD) and does not require saving the license text on copying.
|
||||||
|
|
||||||
The license provides more freedom than any other one (such as GPL or BSD) and does not require saving the license text on copying.
|
DWTWL – an accomplished and eligible license for free text, code and any other symbols (including the software, documentation and artwork).
|
||||||
|
|
||||||
DWTW – an accomplished and eligible license for free text (including the software, documentation and artwork).
|
The license does not contain a "no warranty" clause. DWTWL can be used in countries that do not legally acknowledge the transition to public domain.
|
||||||
|
|
||||||
The license does not contain "no warranty" clause. DWTW can be used in countries that do not legally acknowledge the transition to public domain.
|
Summary:
|
||||||
|
|
||||||
Summary:
|
An author-creator gives their source code to the world for free, without becoming distracted by worldly thinking regarding how and why the others will use it.
|
||||||
|
|
||||||
An author-creator gives his or her source code to the world for free, without becoming distracted by worldly thinking regarding how and why the others will use it.
|
|
||||||
|
|
40
README.md
40
README.md
|
@ -1,25 +1,49 @@
|
||||||
SSH connection manager with curses interface
|
SSH connection and aliases manager with curses and command line interface
|
||||||
======
|
======
|
||||||
sshch is released under DWTWL 2.5 license
|
sshch is released under DWTWL 2.55 license
|
||||||
|
|
||||||
|
sshch compatible with pyhon2 and python3, no additional libraries are required
|
||||||
### Screenshot
|
### Screenshot
|
||||||
![sshch](https://raw.githubusercontent.com/zlaxy/sshch/master/sshch_screenshot.png)
|
![sshch](https://dev.ussr.win/zlax/sshch/raw/branch/master/sshch_screenshot.png)
|
||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
To install for all users:
|
**You can install a release version from pip:**
|
||||||
|
```bash
|
||||||
|
pip install sshch
|
||||||
```
|
```
|
||||||
|
**Manual installation from the package or git repository also available:**
|
||||||
|
|
||||||
|
To install for all users:
|
||||||
|
```bash
|
||||||
sudo python setup.py install
|
sudo python setup.py install
|
||||||
```
|
```
|
||||||
To install just for current user:
|
To install just for current user:
|
||||||
```
|
```bash
|
||||||
mkdir ~/.local/bin
|
mkdir ~/.local/bin
|
||||||
cp sshch/sshch ~/.local/bin/
|
cp sshch/sshch ~/.local/bin/
|
||||||
```
|
```
|
||||||
### Using
|
### Using
|
||||||
To run curses interface:
|
To run curses interface:
|
||||||
```
|
```bash
|
||||||
sshch
|
sshch
|
||||||
```
|
```
|
||||||
To run command line help:
|
To run command line help:
|
||||||
```
|
```bash
|
||||||
sshch -h
|
sshch -h
|
||||||
```
|
```
|
||||||
**If you want to use unsafe 'password' feature you must install 'sshpass' first.**
|
For exit from current ssh session press `Ctrl+D`.
|
||||||
|
|
||||||
|
**Additional Features**
|
||||||
|
- If you want to use unsafe 'password' feature you must install `sshpass` first.
|
||||||
|
- If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/:
|
||||||
|
```bash
|
||||||
|
sudo cp completion/sshch_bash_completion.sh /etc/bash_completion.d/sshch
|
||||||
|
```
|
||||||
|
(changes will come into effect with new bash session)
|
||||||
|
- If you want to use zsh autocompletion:
|
||||||
|
1) Place File in a Directory where ZSH can find it
|
||||||
|
|
||||||
|
-> Search Path is Stored in $fpath
|
||||||
|
|
||||||
|
-> echo $fpath
|
||||||
|
2) Rename File to '_sshch'
|
||||||
|
|
|
@ -2,7 +2,7 @@ _sshch_complete()
|
||||||
{
|
{
|
||||||
local cur_word alias_list
|
local cur_word alias_list
|
||||||
cur_word="${COMP_WORDS[COMP_CWORD]}"
|
cur_word="${COMP_WORDS[COMP_CWORD]}"
|
||||||
alias_list=`sshch -l | sed 's/,//g'`
|
alias_list=`sshch -l`
|
||||||
COMPREPLY=($(compgen -W "$alias_list" -- $cur_word))
|
COMPREPLY=($(compgen -W "$alias_list" -- $cur_word))
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#compdef sshch
|
||||||
|
#
|
||||||
|
# ZSH Completion for SSHCH
|
||||||
|
# Usage:
|
||||||
|
# 1) Place File in a Directory where ZSH can find it
|
||||||
|
# -> Search Path is Stored in $fpath
|
||||||
|
# -> echo $fpath
|
||||||
|
# 2) Rename File to '_sshch'
|
||||||
|
#
|
||||||
|
_arguments '::aliasname:->getAlias' \
|
||||||
|
'-e[Edit Alias]:aliasname:->getAlias' '--edit[Edit Alias]:aliasname:->getAlias' \
|
||||||
|
'-p[Set Password]:aliasname:->getAlias' '--password[Set Password]:aliasname:->getAlias' \
|
||||||
|
'-r[Remove Alias]:aliasname:->getAlias' '--remove[Remove Alias]:aliasname:->getAlias' \
|
||||||
|
'-k[Keep Connection]:aliasname:->getAlias' '--keep[Keep Connection]:aliasname:->getAlias' \
|
||||||
|
'-a[Add Alias]' '--add[Add Alias]'\
|
||||||
|
'-c[Add Command for Executing Alias]' '--command[Add Command for Executing Alias]'\
|
||||||
|
'-h[Show Help Message]' '--help[Show Help Message]'\
|
||||||
|
'-l[List Existing Alias]' '--list[List Existing Alias]'\
|
||||||
|
'-f[List Existing Alias with Connection String]' '--fulllist[List Existing Alias with Connection String]'\
|
||||||
|
'--version[Show Program Version]'
|
||||||
|
case "$state" in
|
||||||
|
getAlias)
|
||||||
|
local -a alias_list
|
||||||
|
alias_list=($(sshch -l))
|
||||||
|
_values -s ' ' 'Aliases' $alias_list
|
||||||
|
;;
|
||||||
|
esac
|
17
setup.py
17
setup.py
|
@ -7,22 +7,27 @@ def main():
|
||||||
|
|
||||||
setup(name='sshch',
|
setup(name='sshch',
|
||||||
author='zlaxy',
|
author='zlaxy',
|
||||||
url='https://github.com/zlaxy/sshch/',
|
author_email='zlaxyi@gmail.com',
|
||||||
description='Ssh connection manager',
|
url='https://gitlab.com/zlax/sshch',
|
||||||
license='DWTWL 2.5',
|
description='Ssh connection and aliases manager',
|
||||||
version='0.7',
|
long_description='SSH connection and aliases manager with curses and command line interface',
|
||||||
|
long_description_content_type='text/x-rst',
|
||||||
|
license='DWTWL 2.55',
|
||||||
|
version='1.09.7',
|
||||||
py_modules=['sshch'],
|
py_modules=['sshch'],
|
||||||
scripts=['sshch/sshch'],
|
scripts=['sshch/sshch'],
|
||||||
|
keywords='sshch ssh aliases curses manager',
|
||||||
|
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4',
|
||||||
|
|
||||||
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console :: Curses',
|
'Environment :: Console :: Curses',
|
||||||
'Intended Audience :: System Administrators',
|
'Intended Audience :: System Administrators',
|
||||||
'License :: Freeware',
|
'License :: Freeware',
|
||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
'Operating System :: POSIX',
|
'Operating System :: POSIX',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python',
|
||||||
'Topic :: Internet',
|
'Topic :: Internet',
|
||||||
'Topic :: System :: Networking',
|
'Topic :: System :: Networking',
|
||||||
'Topic :: System :: Systems Administration',
|
'Topic :: System :: Systems Administration',
|
||||||
|
|
778
sshch/sshch
778
sshch/sshch
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue