【分享】ssh主机管理脚本,自动执行命令,用来替代xshell
Tofloor
poster avatar
177******61
deepin
2020-02-01 07:06
Author
本帖最后由 mokyle 于 2020-2-1 09:33 编辑

python3脚本,可以在ssh同时执行预设命令。提供类似xshell中的登录脚本功能。可用于:

  • 自动输入密码
  • 登录后自动执行命令
  • 登录后自动ssh跳转到其他机器。(即所谓跳板机登录)
  • 自带终端设置Title(仅支持部分终端的bash)
  • 自带修改提示符

支持/搜索
github× https://github.com/mokyle/sshgo
fork from https://github.com/emptyhua/sshgo 并做了大改动
预览图

执行效果图例:



Reply Favorite View the author
All Replies

No replies yet