SSH utilizza TLS?

Aug 27 2020

Ho uno strano caso in cui una scansione di vulnerabilità segnala che sshd è vulnerabile a causa di TLS. Non pensavo che SSH usasse TLS, quindi qualcuno può aiutarmi a spiegare perché "openssl s_client -connect hostname: 22 -tls1" mostra che SSH accetta connessioni TLS?

Per esempio:

$ openssl s_client -connect myhost:22 -tls1
CONNECTED(00000004)
140300455982912:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:332:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 104 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1598564402
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
---

Grazie in anticipo!

Risposte

3 multithr3at3d Aug 27 2020 at 23:23

No, SSH non utilizza TLS. Utilizza il proprio protocollo che fornisce la crittografia.

Nota la tua seconda riga di output:

140300455982912:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:332

Sembra un errore fatale, quindi qualsiasi output aggiuntivo è probabilmente correlato al debug.