Git Product home page Git Product logo

q-shell's Introduction

q-shell -- Quick Shell for Unix administrator

introduction

q-shell is quick shell for remote login into Unix system, it use blowfish crypt algorithm to protect transport data from client to server, you can get two program: 'qsh' for client, and 'qshd' for server, those program can rename by any name with you prefer.

compile

Just enter 'make' and it will automation to compile, but, you must input the server key.

usage

  1. server:

Just run qshd on server:

	 $ ./qshd

But, you would like to run after change it to other name, such as:

	 $ mv qshd smbd
	 $ export PATH=.:$PATH
	 $ smbd
  1. client:

Set some environment variable, then run qsh:

	$ export _IP=127.0.0.1
	$ export _PORT=2800
	$ ./qsh shell

Now you already login into server $_P .

more function

q-shell include more function to manage system:

  1. put/get files:

     $ ./qsh get /path/to/server/file .
     $ ./qsh put /path/to/local/file  /path/to/server/file
    
  2. run a command on server:

     $ ./qsh exec 'ls -l /bin'
    
  3. update server program:

     $ ./qsh update /path/to/local/qshd
    

This function will update remote qshd, and run again.

  1. automation to run command on many server:

     $ for i in {10..20} ; do \
           export _IP=192.168.0.$i
           export _PORT=2800
           export _P=key   # set key
           ./qsh exec 'ls -l /bin'
       done
    

Note: qsh use $_P to fetch server key, so you should erase all history data after to use $_P.

about VERSION file

Client and server must have the same main version serial, otherwise, the client cannot to connect the server. the main version serial like, both is 1.x, or 2.x, or 3.x, etc.

For example, if the client version is 1.1, and server is 1.5, so client can connect to the server, but if server version is 2.1, in that way the client cannot connect to server.

q-shell's People

Contributors

qianshanhai avatar

Stargazers

Infinite Horizon avatar

Watchers

Infinite Horizon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.