julspower Posted August 22, 2006 Share Posted August 22, 2006 je sais comment marche ssh ssh user:pass@ip sauf que j aimerais que si le pass est pas bon il ne me le demande je veux que sont exécution se termine merci vous Link to comment Share on other sites More sharing options...
theocrite Posted August 22, 2006 Share Posted August 22, 2006 MaxAuthTries Specifies the maximum number of authentication attempts permitted per connection. Once the number of failures reaches half this value, additional failures are logged. The default is 6. echo "MaxAuthTries 1" >> /etc/sshd_config && /etc/init.d/ssh restart devrait faire l'affaire. Link to comment Share on other sites More sharing options...
julspower Posted August 22, 2006 Author Share Posted August 22, 2006 sshd_config: line 1: Bad configuration option: MaxAuthTries sshd_config: terminating, 1 bad configuration options Link to comment Share on other sites More sharing options...
theocrite Posted August 22, 2006 Share Posted August 22, 2006 Oups... Édites ton fichier /etc/ssh/sshd_config à la main et met le 1 sur la même ligne que MaxAuthTries. Et redémarre ssh. Link to comment Share on other sites More sharing options...
julspower Posted August 22, 2006 Author Share Posted August 22, 2006 en passant c pas le serveur sshd c le client ssh différence importante Link to comment Share on other sites More sharing options...
theocrite Posted August 22, 2006 Share Posted August 22, 2006 Il faut que tu changes ça sur le serveur ssh de la machine à laquelle tu te connectes. Link to comment Share on other sites More sharing options...
julspower Posted August 22, 2006 Author Share Posted August 22, 2006 non je veux que le client le fasse pas moyen? Link to comment Share on other sites More sharing options...
lorinc Posted August 23, 2006 Share Posted August 23, 2006 tu devrais pouvoir le passer en option : ssh u@ip -o "NumberOfPasswordPrompts 1" chezmoiçamarche.com Link to comment Share on other sites More sharing options...
theocrite Posted August 23, 2006 Share Posted August 23, 2006 NumberOfPasswordPrompts Specifies the number of password prompts before giving up. The argument to this keyword must be an integer. Default is 3. echo "NumberOfPasswordPrompts 1" >> /etc/ssh_config && /etc/init.d/ssh restart Link to comment Share on other sites More sharing options...
julspower Posted August 23, 2006 Author Share Posted August 23, 2006 tu devrais pouvoir le passer en option : ssh u@ip -o "NumberOfPasswordPrompts 1" chezmoiçamarche.com super sa marche #1 merci Link to comment Share on other sites More sharing options...
theocrite Posted August 23, 2006 Share Posted August 23, 2006 Avec l'option dans le fichier de config, ça t'évite de le faire à chaque fois... Sinon Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.