专栏首页Linux技术资源分享It can make your ssh login simply as well as efficiently on Mac or Linux

It can make your ssh login simply as well as efficiently on Mac or Linux

It can make your ssh login simply as well as efficiently on Mac or LInux. 点我翻译 On Mac or Linux system, 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.


ssha Tool Characteristics

  • Scalability configuration
  • Automatic interaction login
  • Support password and SecretKeyFile method
  • Support Mac and Linux
  • Saving time

  • Easy to use

help info

➜  ~ ssha -h
usege:
ssha [-h] [-l] [-s <server alias>]

see server list

➜  ~ 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       V**.samego.com          68.120.80.86    22      alic    /home/alic/.ssha/key/V**.samego.com.key │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘

login sameone server

➜  ~ ssha -s 0
┌────────────────────────────────────────┐
│alic logging into the alicfengPC  server│
└────────────────────────────────────────┘
spawn ssh -p 22 alic@127.0.0.1
alic@127.0.0.1'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】
➜  ~ 


  • Simply to install

For Mac System

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

For Debian

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

For Redhats

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

  • Scalability configuration

example server info configure file

Index=0
Name=hostname
Host=IP | domain
Port=22
User=alic
PasswordOrKey=password

default configure dir

~/.ssha/

configure dir 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

 ▄▄▄▄▄▄▄▄               ██                                                       ▄▄                            ▄▄▄▄▄▄▄▄                      ▄▄▄▄     
 ██▀▀▀▀▀▀               ▀▀                                                       ██                            ▀▀▀██▀▀▀                      ▀▀██     
 ██        ██▄████▄   ████      ▄████▄   ▀██  ███            ▄▄█████▄  ▄▄█████▄  ██▄████▄   ▄█████▄               ██      ▄████▄    ▄████▄     ██     
 ███████   ██▀   ██     ██     ██▀  ▀██   ██▄ ██             ██▄▄▄▄ ▀  ██▄▄▄▄ ▀  ██▀   ██   ▀ ▄▄▄██               ██     ██▀  ▀██  ██▀  ▀██    ██     
 ██        ██    ██     ██     ██    ██    ████▀              ▀▀▀▀██▄   ▀▀▀▀██▄  ██    ██  ▄██▀▀▀██               ██     ██    ██  ██    ██    ██     
 ██▄▄▄▄▄▄  ██    ██     ██     ▀██▄▄██▀     ███              █▄▄▄▄▄██  █▄▄▄▄▄██  ██    ██  ██▄▄▄███               ██     ▀██▄▄██▀  ▀██▄▄██▀    ██▄▄▄  
 ▀▀▀▀▀▀▀▀  ▀▀    ▀▀     ██       ▀▀▀▀       ██                ▀▀▀▀▀▀    ▀▀▀▀▀▀   ▀▀    ▀▀   ▀▀▀▀ ▀▀               ▀▀       ▀▀▀▀      ▀▀▀▀       ▀▀▀▀  
                     ████▀                ███                                                                                                         


AlicFeng say : 价值源于技术,贡献源于分享

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • LNMP实用配置姿势

    AlicFeng
  • 编写了一个ssh管理并自动登录shell脚本sshAutoLogin

    It can make your ssh login simply as well as efficiently on Mac or Linux.

    AlicFeng
  • ThinkPHP开发常用信息记录

    AlicFeng
  • 尤雨溪 6 月 4 日的 Vue 技术分享

    Vue 团队成员简介:https://vuejs.org/v2/guide/team.html

    夜尽天明
  • 安卓反调试|常见的Xposed框架检测手段与突破方式​

    原理:当App获取到系统权限的时候,可以获取系统的所有运行中的App的列表,通过列表发现是否存在有Xposed相关的App(通常都是Xposed Install...

    云爬虫技术研究笔记
  • eclipse控制台中文乱码解决方法

    2.General > Workspace > Text file encoding.

    2Simple
  • 同源策略与CORS

    不同源下,浏览器不允许js操作Cookie、LocalStorage、DOM等数据或页面元素,也不允许发送ajax请求,同源下则不受影响。

    雪飞鸿
  • HttpComponents HttpClient连接池(8)-SSL支持

    在上一篇文章里我们介绍了 httpclient 连接池的重试机制,在这里我们主要介绍连接池对于SSL的支持。

    TA码字
  • 聊聊flink的RpcService

    flink-release-1.7.2/flink-runtime/src/main/java/org/apache/flink/runtime/rpc/Rpc...

    codecraft
  • [深度应用]·sklearn机器学习乳腺癌识别更新中(LogisticRegression,SGDClassifier对比)

    小宋是呢

扫码关注云+社区

领取腾讯云代金券