mssun / passforios

Pass for iOS - an iOS client compatible with Pass command line application.
https://mssun.github.io/passforios
MIT License
1.52k stars 103 forks source link

Failed to authenticate SSH session: No supported cipher found #647

Closed bw9ubwo closed 4 months ago

bw9ubwo commented 5 months ago

Hi,

as the title says. If I try to clone my repository, passforios can't authenticate with the error:

Failed to authenticate SSH session: No supported cipher found

I use an ed25519 Key with a password and my server supports the ciphers below. I can add others if needed, but currently I don't have an Idea which are supported from the app.

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 9.7 (FreeBSD 20240318; protocol 2.0)
| ssh2-enum-algos: 
|   kex_algorithms: (12)
|       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-s
|       kex-strict-s-v00@openssh.com
|   server_host_key_algorithms: (4)
|       rsa-sha2-512
|       rsa-sha2-256
|       ecdsa-sha2-nistp256
|       ssh-ed25519
|   encryption_algorithms: (6)
|       chacha20-poly1305@openssh.com
|       aes128-ctr
|       aes192-ctr
|       aes256-ctr
|       aes128-gcm@openssh.com
|       aes256-gcm@openssh.com
|   mac_algorithms: (10)
|       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
|   compression_algorithms: (2)
|       none
|_      zlib@openssh.com
bw9ubwo commented 4 months ago

Generating a new key has solved the issuer for me. But I think the working key types should be documented somewhere.

ssh-keygen -t ed25519 -b 2046 -m PEM -f git.key