Giter Club home page Giter Club logo

sshconfig's Introduction

sshconfig : ssc

Minimal command to Add/Remove/list ssh aliases in $HOME/.ssh/config

to contribute please fork add your code and make a pull request. feel free to add something new and helpful

Installation

SSC is available on Linux , BSD and OSX

curl -L http://git.io/sshconfig | bash 

Usage

Add a Host(Alias) :

ssc add NAME USERNAME HOSTNAME [IdentityKey] [PORT]
ssc add NAME USERNAME HOSTNAME [PORT]
scc add NAME USERNAME HOSTNAME [IdentityKey]

PORT and Identitykey are optional , PORT is 22 by default and Identitykey is your ssh private key generating by ssh-keygen in $HOME/.ssh .

Example :

ssc add elastix root 192.168.0.100
ssc add nginx root 192.168.0.101 /home/arash/.ssh/arash.pem
ssc add aws-haproxy root 192.168.0.102 /home/arash/.ssh/arash2.pem 2223

Remove a Host(Alias) :

sshconfig remove NAME

Example :

ssc remove nginx
ssc remove aws-haproxy

List Existing Hosts(Aliases) :

List all Hosts(Aliases) :

ssc list

Show information for a Host(Alias) :

ssc list HOST

Example:

ssc list aws-haproxy
>> Host: aws-haproxy  HostName: 192.168.0.102  User: root  Port: 22   IdentityKey: /home/arash/.ssh/arash.pem

Search for a Host

ssc search haproxy
>> Host: haproxy-pars Hostname: 192.168.0.151 User: arash Port: 22 
>> Host: haproxy-afra Hostname: 192.168.1.151 User: arash Port: 22 
>> Host: aws-haproxy Hostname: 192.168.1.102 User: root Port: 22 

Connect to a Host

You can connect to a host if exist:

ssc aws-lsb

Edit a Host

Experimental feature

ssc edit nginx-front

Version and information

ssc version

Change log

Version 1.8:

  • New installer file
  • Edit option included (testing)
  • pretty output

To do:

Share config with other Administrators

ScreenShot

alt scrsht

sshconfig's People

Contributors

ara4sh avatar thez3ro avatar vahit avatar yaser-amiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sshconfig's Issues

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.