下载地址 release
windows用户请手动下载,暂时不提供一键安装模式(主要是批处理脚本不会写)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/luanruisong/tssh/master/install.sh)"
对不起,我不配
export TSSH_HOME=/Users/user/work/ssh_config/
$ tssh -h
______ ______ ______ __ __
/\__ _\ /\ ___\ /\ ___\ /\ \_\ \
\/_/\ \/ \ \___ \ \ \___ \ \ \ __ \
\ \_\ \/\_____\ \/\_____\ \ \_\ \_\
\/_/ \/_____/ \/_____/ \/_/\/_/
Usage of TSSH:
env get env info (e|-e)
version get version info (v|-v)
list get config list (l|-l)
conn connect to alias (c|-c)
delete del config by alias (d|-d)
add add config {user@host} (a|-a)
save reset config {user@host} (s|-s)
-P int
set port in (add|save) (default 22)
-k string
set private_key path in (add|save)
-n string
set alias name in (add|save)
-p string
set password in (add|save)
$ tssh -a user@host -k /Users/user/.ssh/id_rsa -n name
密码如含有特殊字符请使用单引号
$ tssh -a user@host -p 123456 -n pname
$ tssh -s user@host -k /Users/user/.ssh/id_rsa -n name
$ tssh -s user@host -p 123456 -n pname
$ tssh -l
No name ip user auth_mode port save_at
1 name host user private_key 22 2021-03-30 18:38:28
2 pname host user password 22 2021-03-30 18:38:37
$ tssh -d name
$ tssh -d pname
tssh -c name
在windows下代码会出现 panic
已修复windows 问题,感谢大佬提供了一个 终端跨平台解决方案
大佬项目链接 containerd/console
解决问题的心路历程 -> anwu's blog