On Wed, 24 Oct 2001 12:01:48 +0200, Christian Bruhn Gufler wrote:
> Nej, dette forhindrer bare at der acceptereres clear text passwords.
Er du sikker? (Er det ikke en selvmodsigelse for noget der hedder
"secure" at godtage kodeord i klar tekst?)
Fra man sshd:
PasswordAuthentication
Specifies whether password authentication is allowed.
The de fault is ``yes''. Note that this option applies
to both protocol versions 1 and 2.
Forsøg:
virgil
$ grep PasswordAuthentication /etc/ssh/sshd_config
PasswordAuthentication no
virgil
$ ssh ask.diku.dk
asjo@ask.diku.dk's password:
Last login: Mon Oct 15 21:00:22 2001 from ip248.boanxx2.adsl.tele.dk
ask 1 > ssh virgil.dyndns.dk
Warning: Permanently added the RSA host key for IP address '193.89.190.190' to the list of known hosts.
Permission denied (publickey).
Lad os prøve at sætte det til yes, og se hvad der så sker:
virgil
$ grep PasswordAuthentication /etc/ssh/sshd_config
PasswordAuthentication yes
virgil
$ ssh ask.diku.dk
asjo@ask.diku.dk's password:
Last login: Wed Oct 24 20:16:25 2001 from ip316.boanxx2.adsl.tele.dk
ask 1 > ssh virgil.dyndns.dk
asjo@virgil.dyndns.dk's password:
Last login: Wed Oct 24 18:18:19 2001 from napoli on pts/0
Linux virgil 2.4.12 #1 Sun Oct 21 17:10:43 CEST 2001 i686 unknown
Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No mail.
virgil
$ logout
Connection to virgil.dyndns.dk closed.
ask 2 > exit
logout
Connection to ask.diku.dk closed.
virgil
$
Konklusion: det _er_ PasswordAuthentication der afgører om man kan
logge ind med kodeord.
Du har muligvis misforstået en kommentar i sshd_config der lyder:
# To disable tunneled clear text passwords, change to no here!
"tunneled" er det vigtige ord at bemærke der.
Mvh.
--
"It's gonna be one of those underground pictures, right?" Adam Sjøgren
"No. It's gonna be all straight. On the up and up." asjo@koldfront.dk