Auto input password for login in, and access a host by a customized alias command.
- You may have a acount can access lots of servers:
Use source install.sh
to install to
alias command, after installation, you can access a host by:
# use source to let the alias take effect
$ source install.sh username password
$ to 192.168.154.101
- You may access a server frequently:
Use source install_shortcut.sh
to install alias command for a realated host, after installation, you can access it by alias command:
# use source to let the alias take effect
$ source install_shortcut.sh to-101 [email protected]
$ to-101
Attention:
Your account and password infomation will store in
auto_gen
directory. Keep that in mind and delete the whole directory after you finish you work.