warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.97k stars 359 forks source link

Connecting to my raspberry pi makes prompt disappear and no blocks #1459

Open Yonben opened 2 years ago

Yonben commented 2 years ago

Discord username (optional)

Yonben#5489

Local Shell and Version

ZSH 5.8

Remote Shell and Version

Bash 5.1.4(1)-release

Operating System and Version

Linux raspberrypi 5.10.92-v8+ #1514 SMP PREEMPT aarch64 GNU/Linux

Warp Version

v0.2022.05.30.09.10.stable_02

I have tried commenting out my system & user rcfiles and warp still will not bootstrap

Screenshots

image

It's important to know that when ssh-ing it starts on a full screen app. It seems for a second to have a prompt before the full screen starts.

image

Include shell xtrace output

Couldn't get the trace, my input seems disabled when using debug mode (maybe due to the full screen app or something?)

Warp Internal (ignore) - linear-label:018de222-5d69-45e6-ba7c-c94b9ae09495

No response

elviskahoro commented 2 years ago

Sorry for the delay. Is the SSH wrapper enabled for you? Can you check in the settings > features

Yonben commented 2 years ago

It is.

As I mentioned though, it's a full screen app on connection, that refreshes every few seconds, so that might be the issue

thorstenhirsch commented 1 year ago

Same here with the current version of Warp. Maybe verbose ssh output helps. At least you can see some SSH wrapper stuff going on...

ssh -vvv torti@pi
OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/torti/.ssh/config
debug1: /Users/torti/.ssh/config line 4: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/torti/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/torti/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to pi port 22.
debug1: Connection established.
debug1: identity file /Users/torti/.ssh/id_ed25519 type 3
debug1: identity file /Users/torti/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/torti/.ssh/id_rsa type 0
debug1: identity file /Users/torti/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Raspbian-5+deb11u1
debug1: compat_banner: match: OpenSSH_8.4p1 Raspbian-5+deb11u1 pat OpenSSH* compat 0x04000000
debug3: fd 5 is O_NONBLOCK
debug1: Authenticating to pi:22 as 'torti'
debug3: record_hostkey: found key type ECDSA in file /Users/torti/.ssh/known_hosts:16
debug3: load_hostkeys_file: loaded 1 keys from pi
debug1: load_hostkeys: fopen /Users/torti/.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
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp256
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp256,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:rNDTvU0CosWnaEgbz8BHEI0AsYtXg/zPWvSrnrCZRK8
debug3: record_hostkey: found key type ECDSA in file /Users/torti/.ssh/known_hosts:16
debug3: load_hostkeys_file: loaded 1 keys from pi
debug1: load_hostkeys: fopen /Users/torti/.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 'pi' is known and matches the ECDSA host key.
debug1: Found key in /Users/torti/.ssh/known_hosts:16
debug3: send packet: type 21
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /Users/torti/.ssh/id_rsa RSA SHA256:8ZCPVzvLpjH3Yz4TaSiy83swevm5rnIwY4oryC0l9d4 explicit agent
debug1: Will attempt key: /Users/torti/.ssh/id_ed25519 ED25519 SHA256:SssMMlxcgfJcVY5n4YStX4uujox5SjgptIWrZY3rcPI explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
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,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/torti/.ssh/id_rsa RSA SHA256:8ZCPVzvLpjH3Yz4TaSiy83swevm5rnIwY4oryC0l9d4 explicit agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/torti/.ssh/id_rsa RSA SHA256:8ZCPVzvLpjH3Yz4TaSiy83swevm5rnIwY4oryC0l9d4 explicit agent
debug3: sign_and_send_pubkey: using publickey with RSA SHA256:8ZCPVzvLpjH3Yz4TaSiy83swevm5rnIwY4oryC0l9d4
debug3: sign_and_send_pubkey: signing using rsa-sha2-512 SHA256:8ZCPVzvLpjH3Yz4TaSiy83swevm5rnIwY4oryC0l9d4
debug3: send packet: type 50
debug3: receive packet: type 52
Authenticated to pi ([192.168.0.8]:22) using "publickey".
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /Users/torti/.ssh/167680040628736.zafcsWo9o60VMvZE
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 0: new [/Users/torti/.ssh/167680040628736]
debug3: muxserver_listen: mux listener channel 0 fd 6
debug1: channel 1: new [client-session]
debug3: ssh_session2_open: channel_new: 1
debug2: channel 1: send open
debug3: send packet: type 90
debug1: Entering interactive session.
debug1: pledge: id
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug3: client_input_hostkeys: received RSA key SHA256:zbLoeNHO73Uughu5zHXomxPu3+3Y3inOFFi9YYKDn1I
debug3: client_input_hostkeys: received ECDSA key SHA256:rNDTvU0CosWnaEgbz8BHEI0AsYtXg/zPWvSrnrCZRK8
debug3: client_input_hostkeys: received ED25519 key SHA256:lS1A/qVuPGX46tFLewjsOg4qE3lY1IRTlSNsPn3Fg78
debug1: client_input_hostkeys: searching /Users/torti/.ssh/known_hosts for pi / (none)
debug3: hostkeys_foreach: reading file "/Users/torti/.ssh/known_hosts"
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key under different name/addr at /Users/torti/.ssh/known_hosts:12
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key under different name/addr at /Users/torti/.ssh/known_hosts:13
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key at /Users/torti/.ssh/known_hosts:16
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key under different name/addr at /Users/torti/.ssh/known_hosts:24
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key under different name/addr at /Users/torti/.ssh/known_hosts:31
debug3: hostkeys_find: found ssh-ed25519 key under different name/addr at /Users/torti/.ssh/known_hosts:56
debug1: client_input_hostkeys: searching /Users/torti/.ssh/known_hosts2 for pi / (none)
debug1: client_input_hostkeys: hostkeys file /Users/torti/.ssh/known_hosts2 does not exist
debug3: client_input_hostkeys: 3 server keys: 2 new, 18446744073709551615 retained, 2 incomplete match. 0 to remove
debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
debug3: receive packet: type 4
debug1: Remote: /home/torti/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 4
debug1: Remote: /home/torti/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 1: callback start
debug2: fd 5 setting TCP_NODELAY
debug3: set_sock_tos: set socket 5 IP_TOS 0x48
debug2: client_session2_setup: id 1
debug2: channel 1: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env COLORTERM
debug3: Ignored env COMMAND_MODE
debug3: Ignored env HOME
debug1: channel 1: setting env LC_CTYPE = "UTF-8"
debug2: channel 1: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env LOGNAME
debug3: Ignored env LaunchInstanceID
debug3: Ignored env PATH
debug3: Ignored env PWD
debug3: Ignored env SECURITYSESSIONID
debug3: Ignored env SHELL
debug3: Ignored env SHLVL
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env TERM
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env TERM_PROGRAM_VERSION
debug3: Ignored env TMPDIR
debug3: Ignored env USER
debug3: Ignored env WARP_IS_LOCAL_SHELL_SESSION
debug3: Ignored env WARP_USE_SSH_WRAPPER
debug3: Ignored env XPC_FLAGS
debug3: Ignored env XPC_SERVICE_NAME
debug3: Ignored env __CFBundleIdentifier
debug3: Ignored env __CF_USER_TEXT_ENCODING
debug3: Ignored env OLDPWD
debug3: Ignored env JAVA_HOME
debug3: Ignored env RBENV_SHELL
debug3: Ignored env RUBY_CONFIGURE_OPTS
debug3: Ignored env RUBYOPT
debug3: Ignored env NODENV_SHELL
debug3: Ignored env ZSH
debug3: Ignored env PAGER
debug3: Ignored env LESS
debug3: Ignored env LSCOLORS
debug3: Ignored env HOMEBREW_GITHUB_API_TOKEN
debug3: Ignored env CLOUDSDK_PYTHON
debug3: Ignored env CONDA_CHANGEPS1
debug3: Ignored env WARP_PS1
debug3: Ignored env _
debug1: Sending command:
                         export TERM_PROGRAM='WarpTerminal'

                                                           _user="$(command -v whoami >/dev/null 2>&1 && command whoami 2>/dev/null || echo $USER)"
       _hostname="$(command -v hostname >/dev/null 2>&1 && command hostname 2>/dev/null || uname -n)"
                                                                                                     hook=$(printf "{\\"hook\\": \\"SSH\\", \\"value\\": {\\"socket_path\\": \\"~/.ssh/167680040628736\\", \\"user\\": \\"%s\\", \\"host\\": \\"%s\\", \\"remote_shell\\": \\"%s\\"}}" "$_user" "$_hostname" "${SHELL##*/}" | command od -An -v -tx1 | command tr -d " \\n")
                                                                                    printf '\033P$d%s\234' $hook

                                                                                                                if test "${SHELL##*/}" != "bash" -a "${SHELL##*/}" != "zsh"; then
                                       exec $SHELL
                                                  fi

                                                    case ${SHELL##*/} in
                                                                          bash) exec -a bash bash --rcfile <(echo 'set -o vi; set +o vi; HISTCONTROL=ignorespace; HISTIGNORE=" *"; printf '\\''\033P$d7b22686f6f6b223a2022496e69745368656c6c222c202276616c7565223a207b227368656c6c223a202262617368227d7d\234'\\''')
                                  ;;
                                      zsh) WARP_TMP_DIR=$(mktemp -d warptmp.XXXXXX)
                                                                                   local ZSH_ENV_SCRIPT='7
debug2: channel 1: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 1: callback done
debug2: channel 1: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 1
debug2: PTY allocation request accepted on channel 1
debug2: channel 1: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 1
debug2: exec request accepted on channel 1
debug2: channel 1: window 993749 sent adjust 54827

And then in the next block I can only see Starting shell... but it never returns, I can't type anything, it just hangs.