The quickest way to login to an SSH server _linux shell

Source: Internet
Author: User
Tags ssh server

I do not know if you have the same shoes have no management of hundreds of Linux operating system experience, although through SSH private key can be password-free landing, but every day input dozens of times the server IP address, I really like to smash the keyboard, so later learn to lazy use shell script landing, thinking just put IP The last of the address is passed to the shell script, it can be the fastest landing, if there are many different subnets IP address, the corresponding shell script can be established.

How to use
[Zongming@monitor ~]$ SSH5 113

Environment variables
Echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/home/zongming/sh

Shell Script
Cat/home/zongming/sh/ssh5

Copy Code code as follows:

#!/bin/bash
#script_name: ssh5.sh
#description: Login SSH
#last_update: 20130725 by zongming

If [$#-eq 1];then
Ssh-v Root@10.0.5.${1}
Else
echo "Error:return value 1" && exit 1
Fi

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.