Slackware This Forum is for the discussion of Slackware Linux.
|
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-03-2009, 08:22 PM
|
#1
|
|
Member
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 460
Rep:
|
SSH and clear text passwords
Part of sshd_config reads:
Quote:
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
|
So are passwords really sent in clear text by default?
Or does this apply only in certain tunneling situations?
|
|
|
|
05-03-2009, 08:37 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
Those two lines are commented out, so they do not apply.
|
|
|
|
05-03-2009, 08:40 PM
|
#3
|
|
Member
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 460
Original Poster
Rep:
|
Right, but the default is PasswordAuthentication yes
So the question remains...
|
|
|
|
05-03-2009, 09:36 PM
|
#5
|
|
Member
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 13.37, Pardus 2011.2
Posts: 884
Rep:
|
Quote:
Originally Posted by mattydee
So are passwords really sent in clear text by default?
|
But wouldn't that be against the whole purpose of SSH? It says tunneled cleartext, so it's still protected by SSH's encryption.
|
|
|
|
05-03-2009, 09:43 PM
|
#6
|
|
Member
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 460
Original Poster
Rep:
|
Quote:
Originally Posted by Ilgar
But wouldn't that be against the whole purpose of SSH?
|
Yes, that was my concern specifically.
So user/passwords are sent encrypted then?
|
|
|
|
05-04-2009, 02:56 AM
|
#7
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,686
Rep: 
|
Passwords are sent in the clear across the encrypted "tunnel" just like chess says. You type your password and those characters are transferred to the remote machine. An outsider will not be able to intercept your password unless he is able to break the encryption, which is highly unlikely.
The purpose of the configuration parameter "PasswordAuthentication" is that you can set it to "No" to enforce the use of private/public key pairs as the only means of authentication instead of passwords.
Eric
|
|
|
|
05-04-2009, 09:09 PM
|
#8
|
|
Member
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 460
Original Poster
Rep:
|
Thanks,
The wording just seems really odd to me. Not trying to be fastidious, but just want to understand better.
Do we have 2 hypothetical situations then?
1. we encrypt something, then send the packet(s) out. We say it's encrypted.
2. we send the packets out as is (in clear text) but across an encrypted tunnel.
So if understand correctly, the wording in the ssgd_config file refers to situation 2.
|
|
|
|
05-04-2009, 10:50 PM
|
#9
|
|
Member
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 610
Rep: 
|
Yes. The first situation is what happens when you send a GPG-encrypted email. The email is sent out across the interweb in clear text, but it just so happens that clear text is encrypted and wouldn't make sense to anyone with the appropriate GPG keys. The second situation is what SSH does, which is also how you can tunnel and connect to services over SSH that use clear text passwords, like POP3 and SMTP.
|
|
|
|
05-04-2009, 10:53 PM
|
#10
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
Quote:
|
Originally Posted by mattydee
Do we have 2 hypothetical situations then?
1. we encrypt something, then send the packet(s) out. We say it's encrypted.
2. we send the packets out as is (in clear text) but across an encrypted tunnel.
|
If I had to take a WAG, in this context the hypothetical situations are more like: - We send some other authentication method -- perhaps a hashed/digest password, perhaps a key challenge, etc. -- across an encrypted tunnel; or
- We send a password verbatim across an encrypted tunnel.
(#2 still applies to your question.)
Last edited by anomie; 05-04-2009 at 10:55 PM.
Reason: reordered list.
|
|
|
|
05-05-2009, 01:15 AM
|
#11
|
|
Member
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 460
Original Poster
Rep:
|
Thanks, that clears it up!
|
|
|
|
08-22-2012, 05:15 AM
|
#12
|
|
LQ Newbie
Registered: Jun 2011
Posts: 17
Rep: 
|
Quote:
Originally Posted by Alien Bob
Passwords are sent in the clear across the encrypted "tunnel" just like chess says. You type your password and those characters are transferred to the remote machine. An outsider will not be able to intercept your password unless he is able to break the encryption, which is highly unlikely.
The purpose of the configuration parameter "PasswordAuthentication" is that you can set it to "No" to enforce the use of private/public key pairs as the only means of authentication instead of passwords.
Eric
|
I know it's a revive, but I am curios about this case also:
If I use "PasswordAuthentication no" and "ChallengeResponseAuthentication yes", and instead of creating a key I enter my password, how will the password be transferred? Still clear text via encryption tunnel?
Last edited by theblah; 08-22-2012 at 07:09 AM.
|
|
|
|
08-22-2012, 10:01 AM
|
#13
|
|
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Debian, EasyPeasy, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,671
Rep: 
|
Quote:
Originally Posted by theblah
I know it's a revive, but I am curios about this case also:
If I use "PasswordAuthentication no" and "ChallengeResponseAuthentication yes", and instead of creating a key I enter my password, how will the password be transferred? Still clear text via encryption tunnel?
|
PasswordAuthentication is "clear text" in the sense that ChallengeResponseAuthentication is NOT "clear text". Anyone that is looking at what is sent inside the tunnel would see a clear text password in the first choice and not in the second choice. BUT ... getting into the tunnel is HARD to do for other than those who operate at the tunnel ends (strace the ssh process for example). It is all encrypted by SSH's tunnel over the net. The only way they'd know clear text passwords is going on is timing the keystrokes (challenge response will be much faster while password authentication is a few keystrokes depending on password size). I recommend using keys which are passphrase protected.
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:02 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
|
|