LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Passwords sent in clear text? (https://www.linuxquestions.org/questions/linux-security-4/passwords-sent-in-clear-text-475260/)

Synesthesia 08-18-2006 08:59 PM

Passwords sent in clear text?
 
I was under the understanding that in ssh passwords were never sent in clear text (as in ssl). This is from sshd_config:
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

Does this mean you cant have password authentication if you don't want them sent in clear text?!

bulliver 08-18-2006 10:10 PM

No. It means you can disable password authentication and use only key-based authentication instead. This way someone trying to connect will not even get a password prompt to try to brute-force unless they have a known key.

Edit: sorry I missed this line:
Quote:

# To disable tunneled clear text passwords, change to no here!
I have no idea why that is in your sshd_config. ssh does _not_ send passwords in plain text. That is the whole point of ssh, to replace old-school programs like rsh that do...

randyding 08-18-2006 10:13 PM

There's two ways to authenticate, public/private keys or passwords.
By default they are both enabled, you have the option to turn off passwords and that is what PasswordAuthentication does.
If you are authenticating with a password, its still encrypted in the tunnel, I agree the description that says "clear text" is a little misleading. In other words a packet sniffer will not see the password in clear text.

Synesthesia 08-19-2006 02:58 AM

Wow, thats much more than misleading.... If you are right, then the "clear text" statement is absolutely incorrect.

BeesTea 08-19-2006 10:35 AM

They did include the word "tunneled" in describing the clear text exchange.

The idea is that your credentials are visible to the sshd as clear text (it's reading them after they come out of the tunnel). There have been multiple instances where miscreants compromise a multi-user system and replace the sshd binary with one that logs those tunneled credentials. Using PKI with SSH makes that no longer possible.

I don't think the warning is misleading, perhaps just too much information for folks not familiar with the workings of ssh.


All times are GMT -5. The time now is 01:30 AM.