Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.77k stars 3.4k forks source link

how to work on non-standard ssh #9876

Open MutipleA opened 3 months ago

MutipleA commented 3 months ago

Version: 1.0.207 Platform: Linux x64 6.5.0-35-generic Plugins: theme-hype, docker Frontend: xterm-webgl

I have a non-standard ssh server, it's description looks like this: image I'm sure it is a ssh port When I ssh it with tabby, I got this: image terminal ssh: image

How tabby work on this non-standard ssh ?

Eugeny commented 3 months ago

Give https://github.com/Eugeny/tabby/issues/9810 a try

MutipleA commented 3 months ago

image image looks like don't work for me

Eugeny commented 3 months ago

Could you please post the connection log from ssh -v ..., and a Wireshark capture if possible?

MutipleA commented 3 months ago

here is it: ssh -v admin@192.123.168.233 -p22345 OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022 debug1: Reading configuration data /home/fftsk/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/.conf matched no files debug1: /etc/ssh/ssh_config line 21: Applying options for debug1: Connecting to 192.123.168.233 [192.123.168.233] port 22345. debug1: Connection established. debug1: identity file /home/fftsk/.ssh/id_rsa type 0 debug1: identity file /home/fftsk/.ssh/id_rsa-cert type -1 debug1: identity file /home/fftsk/.ssh/id_ecdsa type -1 debug1: identity file /home/fftsk/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/fftsk/.ssh/id_ecdsa_sk type -1 debug1: identity file /home/fftsk/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /home/fftsk/.ssh/id_ed25519 type -1 debug1: identity file /home/fftsk/.ssh/id_ed25519-cert type -1 debug1: identity file /home/fftsk/.ssh/id_ed25519_sk type -1 debug1: identity file /home/fftsk/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /home/fftsk/.ssh/id_xmss type -1 debug1: identity file /home/fftsk/.ssh/id_xmss-cert type -1 debug1: identity file /home/fftsk/.ssh/id_dsa type -1 debug1: identity file /home/fftsk/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.7 debug1: Remote protocol version 2.0, remote software version
debug1: compat_banner: no match:
debug1: Authenticating to 192.123.168.233:22345 as 'admin' debug1: load_hostkeys: fopen /home/fftsk/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: aes256-cbc MAC: hmac-sha1 compression: none debug1: kex: client->server cipher: aes256-cbc MAC: hmac-sha1 compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ecdsa-sha2-nistp256 SHA256:fhTJg1VBWoqMmykDRhUHHIacL9Z8gwkQiaJ5eHjFZ2s debug1: load_hostkeys: fopen /home/fftsk/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: Host '[192.123.168.233]:22345' is known and matches the ECDSA host key. debug1: Found key in /home/fftsk/.ssh/known_hosts:19 debug1: rekey out after 4294967296 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey in after 4294967296 blocks debug1: get_agent_identities: bound agent to hostkey debug1: get_agent_identities: agent returned 1 keys debug1: Will attempt key: /home/fftsk/.ssh/id_rsa RSA SHA256:0x9AqAz5tgdKaBjeUKs1nh++UCGjQ+6nQdAO1CikQTI agent debug1: Will attempt key: /home/fftsk/.ssh/id_ecdsa debug1: Will attempt key: /home/fftsk/.ssh/id_ecdsa_sk debug1: Will attempt key: /home/fftsk/.ssh/id_ed25519 debug1: Will attempt key: /home/fftsk/.ssh/id_ed25519_sk debug1: Will attempt key: /home/fftsk/.ssh/id_xmss debug1: Will attempt key: /home/fftsk/.ssh/id_dsa debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /home/fftsk/.ssh/id_rsa RSA SHA256:0x9AqAz5tgdKaBjeUKs1nh++UCGjQ+6nQdAO1CikQTI agent debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /home/fftsk/.ssh/id_ecdsa debug1: Trying private key: /home/fftsk/.ssh/id_ecdsa_sk debug1: Trying private key: /home/fftsk/.ssh/id_ed25519 debug1: Trying private key: /home/fftsk/.ssh/id_ed25519_sk debug1: Trying private key: /home/fftsk/.ssh/id_xmss debug1: Trying private key: /home/fftsk/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive (admin@192.123.168.233) Password: Authenticated to 192.123.168.233 ([192.123.168.233]:22345) using "keyboard-interactive". debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: pledge: filesystem debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug1: client_input_hostkeys: searching /home/fftsk/.ssh/known_hosts for [192.123.168.233]:22345 / (none) debug1: client_input_hostkeys: searching /home/fftsk/.ssh/known_hosts2 for [192.123.168.233]:22345 / (none) debug1: client_input_hostkeys: hostkeys file /home/fftsk/.ssh/known_hosts2 does not exist debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update debug1: Sending environment. debug1: channel 0: setting env LC_ADDRESS = "zh_CN.UTF-8" debug1: channel 0: setting env LC_NAME = "zh_CN.UTF-8" debug1: channel 0: setting env LC_MONETARY = "zh_CN.UTF-8" debug1: channel 0: setting env LC_PAPER = "zh_CN.UTF-8" debug1: channel 0: setting env LANG = "zh_CN.UTF-8" debug1: channel 0: setting env LC_IDENTIFICATION = "zh_CN.UTF-8" debug1: channel 0: setting env LC_TELEPHONE = "zh_CN.UTF-8" debug1: channel 0: setting env LC_MEASUREMENT = "zh_CN.UTF-8" debug1: channel 0: setting env LC_TIME = "zh_CN.UTF-8" debug1: channel 0: setting env LC_NUMERIC = "zh_CN.UTF-8"

debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to 192.123.168.233 closed. Transferred: sent 4224, received 4848 bytes, in 2.7 seconds Bytes per second: sent 1570.2, received 1802.2 debug1: Exit status 0

please rename it as ssh.cap ssh.log