Skip to content

nthiep/global-ssh-server

Repository files navigation

Global-SSH-Server

Description: Global-SSH socket server is help client connect. Webservice manager user, domain, machine.

Author: Nguyen Thanh Hiep and Nguyen Huu Dinh
Platform: Django, Django-rest-framework
Database: MongoDB

How use it:

Use virtual environment:

$ [sudo] pip install virtualenv

clone source code:

$ git clone https://github.com/nthiep/global-ssh-server.git
$   

create environment:

$ virtualenv global-ssh-server
$ source  global-ssh-server/bin/activate

run server:

$ python global-ssh-server/gshproject/manager.py runserver

Use Apache Server:

edit in /etc/apache2/sites-enabled/000-default.conf

Alias /static /root/global-ssh-server/gshproject/static
	<Directory /root/global-ssh-server/gshproject/static>
    	Require all granted
</Directory>

	<Directory /root/global-ssh-server/gshproject/gshproject>
    	<Files wsgi.py>
       	 Require all granted
    	</Files>
	</Directory>

WSGIDaemonProcess gshproject python-path=/root/global-ssh-server:/root/global-ssh-server/lib/python2.7/site-packages
WSGIProcessGroup gshproject
WSGIScriptAlias / /root/global-ssh-server/gshproject/gshproject/wsgi.py
SetEnv DJANGO_SETTINGS_MODULE gshproject.settings
WSGIPassAuthorization On

restart Apache

$ service apache2 restart

enable ssl in /etc/apache2/sites-enabled/default-ssl.conf

SSLCertificateFile	/etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key

View details at: https://gssh.github.io

About

global-ssh-server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published