Git Product home page Git Product logo

auto-ssh's Introduction

auto_ssh_utils

You can connect ssh by use this script without inputting pass {word, phrase}. This script input them for you.

Install this utils

cd ~/
git clone https://github.com/taro-hida/auto_ssh_utils.git
echo "alias assh='sh ~/auto_ssh_utils/assh.sh'" >> ~/.bashrc
echo "alias rssh='sh ~/auto_ssh_utils/rssh.sh'" >> ~/.bashrc

ofcourse, you can install to another path you prefered to, and set aliases you prefered to.

and resolve dependencies.
this "bash_color" script is necessary for colorfull output.
-> https://github.com/mercuriev/bash_colors

curl https://raw.githubusercontent.com/mercuriev/bash_colors/master/bash_colors.sh > .bash_colors
echo 'source ~/.bash_colors' >> ~/.bashrc

finallly, reload .bashrc

source ~/.bashrc

get started

first, you create ~/.ssh/config

touch ~/.ssh/config

now, you set parameter of remote host.
For example, to connect to server you named "my-ubuntu":

rssh [email protected]
Host -> my-ubuntu
port -> [22] 
password ( or passfrase ) -> password
key path -> [] 
password: google
finish register

when you registe ssh infomation, script connect to the remote_host.
you have to reinput password or passphrase once, if you don't want to do, press <ctrl+C>

now, you can connect to remote server without password or passphrase.

assh my-ubuntu

if you failed to ssh connect, script show list of that host info.

$ assh google-dns    
password: 
failed to connect to 'unknown_host'!!! so list parameters
Host google-dns
HostName 8.8.8.8
User google
Port 22
#google-dnspasswd google

if you want to connect, recheck parameter.

by the way, you can manage remote_desktop login infomation by use this specification.
input remote_desktop remote host infomation, and it failed, list parameter.

you only have to copy and paste password:) by use rdp file, you don't have to input remote host address, username.

auto-ssh's People

Contributors

tarohida avatar xtarohida avatar

Watchers

 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.