Git Product home page Git Product logo

foo_ssh's Introduction

FOO SSH

FOO SSH is a simple command line application that allows you execute commands on server and replies back the output to the client

Getting Sarted

These instructions will get you a copy of the project up or running on your local machine or server for development and testing purposes

Prerequisities

On the client side you should install requirements at the project source folder

pip3 install requirements.txt

Installing

A step by step series of examples that tell you how to get a development envirnment running

In order to connect to the server, you need to have running server script on remote or local machine

Server script is under ./src/server folder

python3 server.py --host <hostname_or_ipv4> --port <port_number>

Arguments: --host : If you do not provide hostname or ipv4 address script creates a socket on localhost by default --port : Provide a valid portname between 1000 and 9999. Default is 9999

Client script is under ./src/client folder

python3 client.py --host <hostname_or_ipv4> --port <port_number>

Arguments: --host : Write a hostname or ipv4 that client needs to connect. If you do not provide hostname client will connect to the localhost --port : Write a port number that server is running on.By default port number is 9999

Usage

Simply :

python3 client.py --host <hostname> --port <port>

After running the client.py file.You can execute commands on the server

Connecting the server : <hostname> on port : <port>
Successfully connected
foo_ssh>ls -l
=>:total 16
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb  7 14:49 boo_folder
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb  7 14:49 bar_folder
Current Directory : /home/ubuntu .
foo_ssh>cd boo_folder
Current Directory : /home/ubuntu/boo_folder
foo_ssh>exit
Bye Client! 

Running the tests

Unit tests is under the tests/unit folder in test.py file Simplest way to run test is :

python3 test.py

foo_ssh's People

Contributors

alparslanuysal avatar

Watchers

James Cloos avatar  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.