warp icon indicating copy to clipboard operation
warp copied to clipboard

seems like ssh connection on macOS 15.2 RC is broken

Open rsyncOSX opened this issue 1 year ago • 12 comments

Dupe Check

Describe the bug

ssh from Warp is denied. ssh from default terminal works ok. macOS 15.2 RC. latest version of Warp. ssh from Warp on macOS 15.1 works ok.

To reproduce

install macOS 15.2 rc

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

15.2 rc

Shell Version

zsh

Current Warp version

latest

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

before upgrading to macOS 15.2 rc

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

rsyncOSX avatar Dec 08 '24 21:12 rsyncOSX

Hi @rsyncOSX thanks for reporting. Can you try again after disabling the Warp SSH wrapper in Settings > Features > Session > Warp SSH Wrapper?

We're actually deprecating this feature. We're working on a whole revamped SSH experience.

For now, you can just disable our SSH wrapper and it should function exactly the same as any other terminal.

acarl005 avatar Dec 08 '24 23:12 acarl005

Hmm, still does not work... Disabled the SSH Wrapper, Warp refuse to Connect by SSH..

Screenshot 2024-12-09 at 06 20 11 Screenshot 2024-12-09 at 06 20 20

rsyncOSX avatar Dec 09 '24 05:12 rsyncOSX

Also did a restart of Warp after disabled the SSH Wrapper. Issue is still there... The issue is confirmed on two Macs updated to 15.2 RC, one M3 Mac and the latest MacMini M4.

rsyncOSX avatar Dec 09 '24 06:12 rsyncOSX

Can you try with verbose logging and post the logs?

ssh -vvv thomas@raspberrypi

acarl005 avatar Dec 09 '24 16:12 acarl005

ssh -vvv thomas@raspberrypi

OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/thomas/.ssh/config
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/thomas/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/thomas/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug1: Connecting to raspberrypi port 22.
ssh: connect to host raspberrypi port 22: Undefined error: 0

rsyncOSX avatar Dec 09 '24 17:12 rsyncOSX

And here is the same from the default terminal in macOS

ssh -vvv thomas@raspberrypi

OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/thomas/.ssh/config
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/thomas/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/thomas/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug1: Connecting to raspberrypi port 22.
debug1: Connection established.
debug1: identity file /Users/thomas/.ssh/id_rsa type 0
debug1: identity file /Users/thomas/.ssh/id_rsa-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519 type 3
debug1: identity file /Users/thomas/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/thomas/.ssh/id_xmss type -1
debug1: identity file /Users/thomas/.ssh/id_xmss-cert type -1
debug1: identity file /Users/thomas/.ssh/id_dsa type 1
debug1: identity file /Users/thomas/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u3
debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u3 pat OpenSSH* compat 0x04000000
debug3: fd 5 is O_NONBLOCK
debug1: Authenticating to raspberrypi:22 as 'thomas'
debug3: record_hostkey: found key type ED25519 in file /Users/thomas/.ssh/known_hosts:3
debug3: record_hostkey: found key type RSA in file /Users/thomas/.ssh/known_hosts:4
debug3: record_hostkey: found key type ECDSA in file /Users/thomas/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 3 keys from raspberrypi
debug1: load_hostkeys: fopen /Users/thomas/.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: have matching best-preference key type [email protected], using HostkeyAlgorithms verbatim
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: [email protected],curve25519-sha256,[email protected],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,[email protected]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],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,[email protected]
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] 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: ssh-ed25519 SHA256:6oq05mpLp9xKwWD/UgQr+LNsVP0rEL8aRz30o03mw+4
debug3: record_hostkey: found key type ED25519 in file /Users/thomas/.ssh/known_hosts:3
debug3: record_hostkey: found key type RSA in file /Users/thomas/.ssh/known_hosts:4
debug3: record_hostkey: found key type ECDSA in file /Users/thomas/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 3 keys from raspberrypi
debug1: load_hostkeys: fopen /Users/thomas/.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 'raspberrypi' is known and matches the ED25519 host key.
debug1: Found key in /Users/thomas/.ssh/known_hosts:3
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
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: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],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,[email protected]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
debug3: kex_input_ext_info: extension [email protected]
debug1: kex_ext_info_check_ver: [email protected]=<0>
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
debug3: ssh_get_authentication_socket_path: path '/private/tmp/com.apple.launchd.3KNQEc42jj/Listeners'
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Skipping ssh-dss key /Users/thomas/.ssh/id_dsa - corresponding algorithm not in PubkeyAcceptedAlgorithms
debug1: Will attempt key: /Users/thomas/.ssh/id_rsa RSA SHA256:qxbdq5r2KPPfj3Bt8vJwOX2yIjESoFCfqvu6sCd495g
debug1: Will attempt key: /Users/thomas/.ssh/id_ecdsa 
debug1: Will attempt key: /Users/thomas/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /Users/thomas/.ssh/id_ed25519 ED25519 SHA256:Olu9N9QzYN250h65RfraBG1YwWEj0WsKXRtJ0nYUf4I
debug1: Will attempt key: /Users/thomas/.ssh/id_ed25519_sk 
debug1: Will attempt key: /Users/thomas/.ssh/id_xmss 
debug2: pubkey_prepare: done
debug1: Offering public key: /Users/thomas/.ssh/id_rsa RSA SHA256:qxbdq5r2KPPfj3Bt8vJwOX2yIjESoFCfqvu6sCd495g
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/thomas/.ssh/id_rsa RSA SHA256:qxbdq5r2KPPfj3Bt8vJwOX2yIjESoFCfqvu6sCd495g
debug3: sign_and_send_pubkey: using [email protected] with RSA SHA256:qxbdq5r2KPPfj3Bt8vJwOX2yIjESoFCfqvu6sCd495g
debug3: sign_and_send_pubkey: signing using rsa-sha2-512 SHA256:qxbdq5r2KPPfj3Bt8vJwOX2yIjESoFCfqvu6sCd495g
debug3: send packet: type 50
debug3: receive packet: type 52
Authenticated to raspberrypi ([192.168.86.96]:22) using "publickey".
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: filesystem
debug3: client_repledge: enter
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: client_input_hostkeys: received RSA key SHA256:+N3n1mvSR7yvYj0LEallcIV7s6aMOwAIRBXvlty/PPg
debug3: client_input_hostkeys: received ECDSA key SHA256:0oJcwioTrWnyRHPeaix25koMWgCtomf6WWhl8pHOEqU
debug3: client_input_hostkeys: received ED25519 key SHA256:6oq05mpLp9xKwWD/UgQr+LNsVP0rEL8aRz30o03mw+4
debug1: client_input_hostkeys: searching /Users/thomas/.ssh/known_hosts for raspberrypi / (none)
debug3: hostkeys_foreach: reading file "/Users/thomas/.ssh/known_hosts"
debug3: hostkeys_find: found ssh-ed25519 key at /Users/thomas/.ssh/known_hosts:3
debug3: hostkeys_find: found ssh-rsa key at /Users/thomas/.ssh/known_hosts:4
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key at /Users/thomas/.ssh/known_hosts:5
debug3: hostkeys_find: found ssh-ed25519 key under different name/addr at /Users/thomas/.ssh/known_hosts:8
debug1: client_input_hostkeys: searching /Users/thomas/.ssh/known_hosts2 for raspberrypi / (none)
debug1: client_input_hostkeys: hostkeys file /Users/thomas/.ssh/known_hosts2 does not exist
debug3: client_input_hostkeys: 3 server keys: 0 new, 3 retained, 0 incomplete match. 0 to remove
debug1: client_input_hostkeys: no new or deprecated keys from server
debug3: client_repledge: enter
debug3: receive packet: type 4
debug1: Remote: /home/thomas/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 4
debug1: Remote: /home/thomas/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 5 setting TCP_NODELAY
debug3: set_sock_tos: set socket 5 IP_TOS 0x48
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env __CFBundleIdentifier
debug3: Ignored env TMPDIR
debug3: Ignored env XPC_FLAGS
debug3: Ignored env TERM
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env XPC_SERVICE_NAME
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env TERM_PROGRAM_VERSION
debug3: Ignored env TERM_SESSION_ID
debug3: Ignored env SHELL
debug3: Ignored env HOME
debug3: Ignored env LOGNAME
debug3: Ignored env USER
debug3: Ignored env PATH
debug3: Ignored env SHLVL
debug3: Ignored env PWD
debug3: Ignored env OLDPWD
debug3: Ignored env P9K_TTY
debug3: Ignored env _P9K_TTY
debug3: Ignored env ZSH
debug3: Ignored env PAGER
debug3: Ignored env LESS
debug3: Ignored env LSCOLORS
debug3: Ignored env LS_COLORS
debug3: Ignored env P9K_SSH
debug3: Ignored env _P9K_SSH_TTY
debug1: channel 0: setting env LC_CTYPE = "UTF-8"
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env _
debug3: Ignored env __CF_USER_TEXT_ENCODING
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug3: client_repledge: enter
debug1: pledge: fork
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Linux raspberrypi 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Dec  9 18:27:11 2024 from 192.168.86.120

rsyncOSX avatar Dec 09 '24 17:12 rsyncOSX

Thanks for the bug report! We've been working on a new approach to ssh that should be more robust, and we're in the process of rolling it out now.

If you'd like to see if the new implementation works better for you, here's how you can try it out:

  • Update to the latest version (v0.2024.12.10.15.55.stable_02).
  • Enable the new ssh feature:
    • On macOS, run defaults write dev.warp.Warp-Stable SshTmuxWrapperOverride true.
    • On Linux, add the "SshTmuxWrapperOverride": true key-value pair to ~/.config/warp-terminal/user_preferences.json.
  • Quit and re-open Warp.

Let me know if this fixes it!

heysweet avatar Dec 12 '24 19:12 heysweet

Sorry, did not fix it.. The second last figure is Iterm2 connection to my server by SSH, after trying to Connect by Warp. Warp also tried to solve the issue by ping, see last figure

Screenshot 2024-12-12 at 22 06 24 Screenshot 2024-12-12 at 22 08 35 Screenshot 2024-12-12 at 22 08 53 Screenshot 2024-12-12 at 22 09 24 Screenshot 2024-12-12 at 22 09 44 Screenshot 2024-12-12 at 22 13 28

rsyncOSX avatar Dec 12 '24 21:12 rsyncOSX

In macOS 15, Warp has to be added Settings, Privacy & Security, Local Network.. And now SSH works ...

rsyncOSX avatar Dec 19 '24 15:12 rsyncOSX

@rsyncOSX Thanks for letting us know the fix. For other folks who may run into this issue, I've dropped the instructions in our Known Issues doc here. https://docs.warp.dev/help/known-issues#ssh-to-local-network-device-is-denied

dannyneira avatar Dec 19 '24 22:12 dannyneira

I have everything enabled in Settings but it doesn't work, I still get "undefined" error. In native Terminal all works

rogerkerse avatar Aug 26 '25 12:08 rogerkerse

still not working in 2026. everything is enabled under Local network access. native terminal works just fine. can we reopen the issue as it blocks any local work?

gle6as avatar Mar 28 '26 17:03 gle6as