Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.ssh/config 中配置的 SetEnv TERM 无效 #100

Open
milkpuff opened this issue Mar 25, 2024 · 2 comments
Open

~/.ssh/config 中配置的 SetEnv TERM 无效 #100

milkpuff opened this issue Mar 25, 2024 · 2 comments

Comments

@milkpuff
Copy link

linux环境,终端 kitty 和 foot
最近 tssh 连接后,存在样式不对、行首多一个问号、退格变成空格等问题。修改环境变量 TERM=xterm 可以解决。

但如果仅在 .ssh/config 中设置 SetEnv TERM=xterm
此时,本地终端 echo $TERM 返回 xterm-kitty (或foot)

  1. 使用普通ssh连接,变量 TERM=xterm 成功传递到了服务器,echo $TERM 返回 xterm;
  2. 使用tssh连接,变量 TERM=xterm 没有传递到了服务器,echo $TERM 返回 xterm-kitty (或foot)
@lonnywong
Copy link
Member

看来 openssh 中,配置 SetEnv TERM=xterm 的优先级要高于环境变量 TERM=xterm 的,我抽空适配一下。

@lonnywong
Copy link
Member

已解决。

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants