1 Star 0 Fork 0

metmit / sshx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SSHX

SSHX 将host、port、user、password经过简单混淆之后,存储在本地文件。需要连接时,按照规则解析出必要信息,使用expect自动输入密码连接。

SSHX 目前提供了bash、golang两种使用方式,将sshx文件拷贝到可执行目录,即可使用。

依赖

  • expect:自动交互输入密码
  • ssh:建立连接必须的
  • md5sum:仅shell方式时需要,用于混淆
  • bc::仅shell方式时需要,用于混淆

使用

/yourpath/sshx -n connect_name -s connect_secret -o operation
  • -n connect_name:连接名称
  • -s connect_secret:混淆码,用于混淆存储
  • -o operation:操作add添加、del删除、con连接(默认)
# 创建连接配置
/yourpath/sshx -n connect_name -s connect_secret -o add

# 删除连接配置
/yourpath/sshx -n connect_name -s connect_secret -o add

# 建立连接
/yourpath/sshx -n connect_name -s connect_secret -o add
/yourpath/sshx -n connect_name -s connect_secret

# 直接使用,交互输入连接名、混淆码
/yourpath/sshx 

示例

# 拷贝可执行文件到bin # 也可拷贝go编译的文件
$ cp ./shell/sshx /usr/local/bin/

# 赋予可执行权限
$ chmod +x /usr/local/bin/sshx

# 查看文件位置
$ which sshx
/usr/local/bin/sshx

# 添加连接配置
$ sshx -o add

# 连接
$ sshx

iterm2

添加配置后,可通过iterm2profiles管理连接。

⌘ + ,偏好设置,选择Profiles添加快捷连接:

add

⌘ + o打开Profiles列表,选择连接打开:

list

连接成功:

connect

tab名称显示可在偏好设置 - Appearance 中勾选 Show profie name,可设置Badge在连接窗口显示。

添加的Tags可以方便的在连接时筛选。

MIT License Copyright (c) 2019 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

安全的SSH客户端,将登录信息混淆后存储至本地,一条命令解决多服务器登录问题。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/metmit/sshx.git
git@gitee.com:metmit/sshx.git
metmit
sshx
sshx
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891