Skip to content

SshTransportHandshakeResult

Defined in: src/protocols/ssh/transport/SshTransportHandshake.ts:29

Initial client-side handshake state before key exchange math starts.

PropertyTypeDescriptionDefined in
inboundPacketCountnumberNumber of unencrypted packets the client received from the server during the handshake (server KEXINIT, KEX_ECDH_REPLY, NEWKEYS). Seeds the inbound unprotector.src/protocols/ssh/transport/SshTransportHandshake.ts:59
keyExchange{ algorithm: string; clientKexInitPayload: Buffer; clientPublicKey: Buffer; exchangeHash: Buffer; serverHostKey: Buffer; serverKexInitPayload: Buffer; serverPublicKey: Buffer; serverSignature: Buffer; sessionId: Buffer; sharedSecret: Buffer; transportKeys: { clientToServer: SshTransportDirectionKeys; serverToClient: SshTransportDirectionKeys; }; }-src/protocols/ssh/transport/SshTransportHandshake.ts:30
keyExchange.algorithmstring-src/protocols/ssh/transport/SshTransportHandshake.ts:31
keyExchange.clientKexInitPayloadBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:32
keyExchange.clientPublicKeyBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:33
keyExchange.exchangeHashBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:34
keyExchange.serverHostKeyBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:35
keyExchange.serverKexInitPayloadBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:36
keyExchange.serverPublicKeyBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:37
keyExchange.serverSignatureBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:38
keyExchange.sessionIdBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:39
keyExchange.sharedSecretBuffer-src/protocols/ssh/transport/SshTransportHandshake.ts:40
keyExchange.transportKeys{ clientToServer: SshTransportDirectionKeys; serverToClient: SshTransportDirectionKeys; }-src/protocols/ssh/transport/SshTransportHandshake.ts:41
keyExchange.transportKeys.clientToServerSshTransportDirectionKeys-src/protocols/ssh/transport/SshTransportHandshake.ts:42
keyExchange.transportKeys.serverToClientSshTransportDirectionKeys-src/protocols/ssh/transport/SshTransportHandshake.ts:43
negotiatedAlgorithmsNegotiatedSshAlgorithms-src/protocols/ssh/transport/SshTransportHandshake.ts:46
outboundPacketCountnumberNumber of unencrypted packets the client sent during the handshake (KEXINIT, KEX_ECDH_INIT, NEWKEYS). Per RFC 4253 §6.4, packet sequence numbers are never reset across NEWKEYS, so this value seeds the outbound protector.src/protocols/ssh/transport/SshTransportHandshake.ts:54
serverIdentificationSshIdentification-src/protocols/ssh/transport/SshTransportHandshake.ts:47
serverKexInitSshKexInitMessage-src/protocols/ssh/transport/SshTransportHandshake.ts:48