diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c934314 --- /dev/null +++ b/LICENSE @@ -0,0 +1,30 @@ +sshch + +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. + +DO WHAT THAU WILT +TO PUBLIC LICENSE + +Version 2.5 + +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. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +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. + +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. + +DWTW – an accomplished and eligible license for free text (including the software, documentation and artwork). + +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: + +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. diff --git a/README.md b/README.md index 9697a10..078a637 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ -Simpe python script for fast access to ssh hosts. - -under DWTWL 2.5 license: https://soundragon.su/license/license.html +SSH connection manager with curses interface +====== +sshch is released under DWTWL 2.5 license +![sshch](https://raw.githubusercontent.com/zlaxy/sshch/master/sshch_screenshot.png) +### Installing +To install for all users: +``` +sudo python setup.py install +``` +To install just for current user: +``` +mkdir ~/.local/bin +cp sshch/sshch ~/.local/bin/ +``` +### Using +To run curses interface: +``` +sshch +``` +To run command line help: +``` +sshch -h +``` +**If you want to use unsafe 'password' feature you must install 'sshpass' first.** \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8450cf5 --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python + +"""Setup script for sshch""" + +def main(): + from distutils.core import setup + + setup(name='sshch', + author='zlaxy', + url='https://github.com/zlaxy/sshch/', + description='Ssh connection manager', + license='DWTWL 2.5', + version='0.55', + py_modules=['sshch'], + scripts=['sshch/sshch'], + + # http://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Console :: Curses', + 'Intended Audience :: System Administrators', + 'License :: Freeware', + 'Natural Language :: English', + 'Operating System :: POSIX', + 'Programming Language :: Python :: 2.7', + 'Topic :: Internet', + 'Topic :: System :: Networking', + 'Topic :: System :: Systems Administration', + 'Topic :: Utilities']) + + return 0 + +if __name__ == '__main__': + import sys + sys.exit(main()) diff --git a/sshch.py b/sshch/sshch old mode 100644 new mode 100755 similarity index 99% rename from sshch.py rename to sshch/sshch index 62dc75f..bfd47b6 --- a/sshch.py +++ b/sshch/sshch @@ -14,7 +14,7 @@ import base64 import curses # https://github.com/zlaxy/sshch -version="0.5" +version="0.55" # path to conf file, default: ~/.config/sshch.conf conf_file = path.expanduser("~") + '/.config/sshch.conf' @@ -156,7 +156,6 @@ def CursesPanel(screen, h, w, y, x, text, new_window.attroff(deco_colorpair) sub_window = new_window.subwin(h - 2, w - 2 , y + 1 , x + 1) sub_window.insstr(0, 0, text) -# sub_window.addnstr(0, 0, text, ((h - 2) * (w - 2) - 1)) panel = curses.panel.new_panel(new_window) curses.panel.update_panels() screen.refresh()