TurnKey Linux Virtual Appliance Library

Are SSH packets encrypted before key exchange?

Rakesh Kumar Gupta's picture

Hi,

    I am new to ssh. I know that after key exchange client and server use negotiated algorithm to encrypt the packet. But in what format packets are transmitted before key exchange? If they are encrypted even before key exchange then which key is used to encrypt the packet.

I hope some of you guys might have answer of my question.

Thanks in advance.

Jeremy's picture

Fair question

And it made me think... So I asked google and found plenty of info. Short answer is yes it seems that all communication is encrypted...

Rakesh Kumar Gupta's picture

Are SSH packets encrypted before key exchange?

Hi Jeremy,

Thanks for your response.

But I didn't find my answer that what key is used to encrypt them...?

I anlayzed and thought that they might be encrypted using public key. But how they are exchanging their public key even before communication?

Jeremy's picture

I don't know the details

But have a look on the SSH Wikipedia page... Seems like all the details are there...

I suggest that if that doesn't answer your question and you'd like to find out more, perhaps conduct your own investigations and/or contact the OpenSSH devs (I'm sure they've got a mailing list or something.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)