PDA

View Full Version : sshd - password login - encrypted session?


Spitphire
February 15th, 2008, 01:53 PM
I login to sshd with putty and just have password authoication on, i don't use public/private keys to encrypt the session.

My question:

If i just use password auth, is the session still encrypted?

the reason i don't use keys with password auth off, is because freenx needs password auth on...

mrsteveman1
February 15th, 2008, 02:34 PM
SSH is always encrypted. Those settings are for people who want to disable password auth so that random hackers cant hammer a server with login attempts.

People sometimes use public/private key logins so that it becomes much much harder to bruteforce an SSH login.

Rest assured no matter what you do SSH is encrypted end to end.

Spitphire
February 15th, 2008, 03:27 PM
Thanks for the reply,

So if it's password auth or public/private key, the encryption of the session is always the same strength?

Dr Small
February 15th, 2008, 03:50 PM
I am not much in the know about SSH encryption, but whether you are using a password or ssh keys, it's still going to be encrypted so a person sniffing your network won't be able to see what is gaing on.

Dr Small

mrsteveman1
February 15th, 2008, 04:06 PM
the public/private keypairs are only used to negotiate a session key, the actual encryption is done by a symmetric cipher.

The SSH2 spec lists the following ciphers:

3des-cbc REQUIRED
blowfish-cbc OPTIONAL
twofish256-cbc OPTIONAL
twofish-cbc OPTIONAL
twofish192-cbc OPTIONAL
twofish128-cbc OPTIONAL
aes256-cbc OPTIONAL
aes192-cbc OPTIONAL
aes128-cbc RECOMMENDED
serpent256-cbc OPTIONAL
serpent192-cbc OPTIONAL
serpent128-cbc OPTIONAL
arcfour OPTIONAL
idea-cbc OPTIONAL
cast128-cbc OPTIONA
none OPTIONAL

It does appear the spec allows for no encryption at all but you would have to manually specify this, by default ssh is encrypted by one of the ciphers supported on both ends.


Here (http://www.ietf.org/rfc/rfc4253.txt) is the rest of the spec for the transport layer which is where the encryption occurs.

Spitphire
February 15th, 2008, 06:28 PM
Ok, got it. Thanks!