trzsz / trzsz-ssh

trzsz-ssh ( tssh ) is an ssh client designed as a drop-in replacement for the openssh client. It aims to provide complete compatibility with openssh, mirroring all its features, while also offering additional useful features. Such as login prompt, batch login, remember password, automated interaction, trzsz, zmodem(rz/sz), udp mode like mosh, etc.
https://trzsz.github.io/ssh
MIT License
1.66k stars 98 forks source link

[功能请求] 通过命令行参数传递密码 #104

Closed GeekDuanLian closed 5 months ago

GeekDuanLian commented 5 months ago

tssh -o'Password xxx' user@host 似乎无效,程序只会读取配置文件中的内容

希望在配置文件中的条目,都能通过命令行参数来传递,这样可以不用进行配置编辑,简化操作步骤 同时也提供不读取配置文件的功能,避免配置混淆,目前-F'NUL'-o'UserKnownHostsFile NUL'均有效,但~/.ssh/password不能通过命令行参数指定

lonnywong commented 5 months ago

我周末有空了支持一下

lonnywong commented 5 months ago

已支持。

v0.1.20 发布前,可以这样安装 go install github.com/trzsz/trzsz-ssh/cmd/tssh@main,安装的路径在 ~/go/bin/