Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh config question

Status
Not open for further replies.

hfaix

MIS
Nov 25, 2003
596
US
This may sound like a stupid question, but what exactly does the following line in the /etc/sshd_config file mean?

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no


 
PasswordAuthentication specifies whether we should use password-based authentication. For strong security, this option must always be set to yes.

The option PermitEmptyPasswords specifies whether the server allows logging in to accounts with a null password. If you intend to use the scp utility to make automatic backups over the network, you must set this option to yes.

 
ok, that makes sense, but what does

# To disable tunneled clear text passwords, change to no here!

mean?


Thanks!
 
This way no passwords are transported even if someone breaks the encryption.
 
From SSH The Secure Shell: The Definitive Guide:

...password authentication is less secure than public-key because the sensitive password is transmitted off the client host. It is protected from snooping while on the network but is vulnerable to capture once it arrives at the server if that machine has been compromised. This is in contrast with public-key authentication, as even a compromised server can't learn your private key through the protocol. Therefore, before choosing password authentication, you should weigh the trustworthiness of the client and the server, as you will be revealing to them the key to your electronic kingdom.

Public key authentication takes more setup, but is more secure and convenient (thanks to ssh-agent) once in place. There's an article in the September 2005 Linux Journal on using keys for scripts and cron jobs, too.

That said, I don't normally turn off PasswordAuthentication because I might need to connect from a machine that doesn't have my private key.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Oh.... that makes sense. Thanks Rod!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top