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