sshAutoLogin
It can make your ssh login simply as well as efficiently on Mac or Linux.
we are frequently using ssh login remote server by terminal. We will find a headache that is often entering a repetitive command line. Fuck~ it's a waste of time!Maybe you cloud write configure of alias on profile. enenen~ Finally, I determined to write a time-saving shell.Beginning with university stage.
What are its characteristics or advantages
- Scalability and configuration
- Automatic interactive login
- Support for password and secret key files
- Support for Mac and Linux
- Time is life
Use
View help information
➜ ~ ssha -h usege: ssha [-h] [-l] [-s <server alias>]
View the list of configured server information
➜ ~ ssha -l Index Description Port Host Username Password|SecretKeyFile ┌────────────────────────────────────────────────────────────────────────┐ │0 alicfengPC 127.0.0.1 22 alic pwdalic │ └────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────┐ │1 us.samego.com 47.68.88.88 22 alic u.know.pwd │ └────────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────┐ │2 hk.samego.com 120.88.88.86 22 alic u.know.pwd │ └────────────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │3 vpn.samego.com 68.120.80.86 22 alic /home/alic/.ssha/key/vpn.samego.com.key │ └────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Quick login
➜ ~ ssha -s 0 ┌────────────────────────────────────────┐ │alic logging into the alicfengPC server│ └────────────────────────────────────────┘ spawn ssh -p 22 alic[@127.0.0.1](https://my.oschina.net/u/567043) alic[@127.0.0.1](https://my.oschina.net/u/567043)'s password: Welcome to elementary OS 0.4.1 Loki (GNU/Linux 4.13.0-32-generic x86_64) Last login: Sat Aug 11 16:44:46 2018 from 127.0.0.1 ➜ ~ successfully logined [alicfengPC] ➜ ~
install
Mac system
➜ ~ curl -sSL https://raw.githubusercontent.com/alicfeng/sshAutoLogin/master/iMac.sh | bash
Debian series
➜ ~ curl -sSL https://raw.githubusercontent.com/alicfeng/sshAutoLogin/master/iDebian.sh | bash
Redhats
➜ ~ curl -sSL https://raw.githubusercontent.com/alicfeng/sshAutoLogin/master/IRedHats.sh | bash
- Configuration description
What is the configuration of each unit like?
Index=0 Name=hostname Host=IP | domain Port=22 User=alic PasswordOrKey=password
Default configuration directory path
~/.ssha/
Take a look at my sample directory Tree
➜ .ssha tree . ├── 0_localhost.ini ├── 1_47.68.88.88.conf ├── 2_120.88.68.86.ini └── 3_68.120.80.68.ini 0 directories, 4 files