julioverne / DropbearAlert

Dropbear System Login Alert for iOS 10
5 stars 1 forks source link

[Bug] Does not work on iOS 10.3 #4

Open frakman1 opened 5 years ago

frakman1 commented 5 years ago

I have been unable to SSH into my iPhone recently. I suspected this tweak. When I turned it off, I was able to ssh again.

THIS BUG IS 100% REPRODUCIBLE SSH works when DropbearAlert is disabled. SSH does not work when DropbearAlert is enabled.

When tweak is enabled: image

$ssh root@10.0.0.209
Warning: Permanently added '10.0.0.209' (DSA) to the list of known hosts.
root@10.0.0.209's password:
Connection closed by 10.0.0.209 port 22

$ssh -v root@10.0.0.209
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/frak/.ssh/config
debug1: /Users/frak/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to 10.0.0.209 port 22.
debug1: Connection established.
debug1: identity file /Users/frak/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/frak/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version dropbear_2015.71
debug1: no match: dropbear_2015.71
debug1: Authenticating to 10.0.0.209:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-dss
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-md5 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-md5 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-dss SHA256:DjzoCWqEqWjyvxNRwP2ADR+56cGaolTyVkkXXqNAkik
Warning: Permanently added '10.0.0.209' (DSA) to the list of known hosts.
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:5OyMyOv57yxV0H3gkkfjziRxfbfQqm1I1TUDjU3z7GY /Users/frak/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/frak/.ssh/id_dsa
debug1: Trying private key: /Users/frak/.ssh/id_ecdsa
debug1: Trying private key: /Users/frak/.ssh/id_ed25519
debug1: Next authentication method: password
root@10.0.0.209's password:
Connection closed by 10.0.0.209 port 22

When tweak is disabled:

image

$ssh root@10.0.0.209
Warning: Permanently added '10.0.0.209' (DSA) to the list of known hosts.
root@10.0.0.209's password:
FrakPhoneSE:~ root#
frakman1 commented 5 years ago

On the plus side, I've always wanted a graphical toggle for SSH :)