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

--udp 与登录后 shell 命令冲突 #171

Open
zz5678 opened this issue Feb 24, 2025 · 0 comments
Open

--udp 与登录后 shell 命令冲突 #171

zz5678 opened this issue Feb 24, 2025 · 0 comments

Comments

@zz5678
Copy link

zz5678 commented Feb 24, 2025

termux 设置 0.1.22 版本服务器和客户端。
tssh --udp -t -p8022 [email protected] 'zellij attach w' ,附带简短的登录shell命令就会卡死,ctrl+c 无效,要 kill -9 tssh 进程才能退出。

按照 tssh 工作原理看,估计是全平台都有这问题,没测那么多,去掉 --udp 就一切顺畅。下面是 debug,到26行就卡住,没后续了。在服务器端查看udp端口都开了

1 tssh --debug --udp -t -p8022 [email protected] 'zellij attach w'
  2 debug: /data/data/com.termux/files/home/.tssh.conf does not exist                             3 debug: open config [/data/data/com.termux/files/home/.ssh/config] success
  4 debug: decode config [/data/data/com.termux/files/home/.ssh/config] success
  5 debug: system config [/etc/ssh/ssh_config] does not exist
  6 debug: ssh agent address is not set                                                           7 debug: will attempt key: /data/data/com.termux/files/home/.ssh/id_rsa ssh-rsa SHA256:kxRJ+Hf    ABfbC7CM9lY21FC3XJ4YUz+NDSnCc3yILwh4                                                          8 debug: add auth method: public key authentication
  9 debug: add auth method: keyboard interactive authentication
 10 debug: add auth method: password authentication                                              11 debug: add UserKnownHostsFile: /data/data/com.termux/files/home/.ssh/known_hosts             12 debug: UserKnownHostsFile [/data/data/com.termux/files/home/.ssh/known_hosts2] does not exis    t
 13 debug: GlobalKnownHostsFile [/etc/ssh/ssh_known_hosts] does not exist
 14 debug: GlobalKnownHostsFile [/etc/ssh/ssh_known_hosts2] does not exist
 15 debug: user declared ciphers: [[email protected] aes128-ctr aes192-ctr aes256-ct    r [email protected] [email protected] aes128-cbc aes192-cbc aes256-cbc]
 16 debug: client supported ciphers: [[email protected] aes128-ctr aes192-ctr aes256    -ctr [email protected] [email protected] aes128-cbc]
 17 debug: login to [192.168.101.6], addr: 192.168.101.6:8022
 18 debug: sign with algorithm [rsa-sha2-256]: SHA256:kxRJ+HfABfbC7CM9lY21FC3XJ4YUz+NDSnCc3yILwh    4
 19 debug: login to [192.168.101.6] success
 20 debug: extended config [/data/data/com.termux/files/home/.ssh/password] does not exist
 21 debug: no extended config [UdpMode] for [192.168.101.6]
 22 debug: no extended config [TsshdPath] for [192.168.101.6]
 23 debug: no extended config [UdpPort] for [192.168.101.6]
 24 debug: tsshd command: tsshd
 25 debug: no extended config [UdpAliveTimeout] for [192.168.101.6]
 26 debug: udp login [192.168.101.6] success
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

1 participant