linux ssh_auto_login,sshAutoLogin | ssh管理工具

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.

它有什么特点或好处呢

扩展性、配置化

自动交互登录

支持密码以及秘钥文件

支持Mac以及Linux

时间是生命呐

使用

查看帮助信息

➜  ~ ssha -h

usege:

ssha [-h] [-l] [-s ]

查看配置的服务器信息列表

➜  ~ 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 │

└────────────────────────────────────────────────────────────────────────────────────────────────────────┘

快捷登录

➜  ~ 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】

➜  ~

安装

Mac系统

➜  ~ curl -sSL https://raw.githubusercontent.com/alicfeng/sshAutoLogin/master/iMac.sh | bash

Debian系列

➜  ~ 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

配置说明

每一个单元配置长什么样呢?

Index=0

Name=hostname

Host=IP | domain

Port=22

User=alic

PasswordOrKey=password

默认的配置目录路径

~/.ssha/

你看看我的示例目录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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值