Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-18-2006, 09:59 PM
|
#1
|
Member
Registered: Jan 2004
Location: the abyss
Posts: 209
Rep:
|
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?!
|
|
|
08-18-2006, 11:10 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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...
Last edited by bulliver; 08-18-2006 at 11:12 PM.
|
|
|
08-18-2006, 11:13 PM
|
#3
|
Member
Registered: May 2004
Posts: 552
Rep:
|
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.
|
|
|
08-19-2006, 03:58 AM
|
#4
|
Member
Registered: Jan 2004
Location: the abyss
Posts: 209
Original Poster
Rep:
|
Wow, thats much more than misleading.... If you are right, then the "clear text" statement is absolutely incorrect.
|
|
|
08-19-2006, 11:35 AM
|
#5
|
LQ Newbie
Registered: Jul 2006
Posts: 1
Rep:
|
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 11:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|