Rechercher : dans
Par :

Interdir de se logger en root en ssh

Dernière réponse le 9 mar 2009 à 12:00:34 julow, le 9 mar 2009 à 11:18:55 
 Signaler ce message aux modérateurs

Bonjour,

J'ai sur ma Debian modifier le fichier de configuration ssh afin d'interdire le login root (PermitRootLogin no) mais pourtant cela ne fonctionne pas car je me log en root sans problème...

Pourquoi?

Merci!

Stop aux Hoax!

Meilleures réponses pour « Interdir de se logger en root en ssh » dans :
Se logguer à distance avec ssh ( Windows ) Voir( Pour ceux qui voudraient avoir un rappel sur ssh : http://www.commentcamarche.net/crypto/ssh.php3 ) Contrairement à la plupart des distributions Linux, Windows ne possède pas de client ssh en natif. Il faut donc en installer un. ...
Se logguer à distance avec ssh (Linux) Voir(Pour ceux qui voudraient avoir un rappel sur SSH : http://www.commentcamarche.net/crypto/ssh.php3) Les commandes suivantes nécessitent d'avoir un compte sur la machine sur laquelle on veut se connecter et qu'un serveur SSH y soit installé. ...
[Réseaux] Installation d'un serveur ssh sous Windows VoirCet article va vous expliquer comment installer et configurer un serveur ssh sous Windows. Sommaire Introduction Choix du logiciel OS nécessaire Outils utilisés Avant de commencer Note importante Note de l'auteur (sebsauvage) I -...

1

jipicy, le 9 mar 2009 à 11:19:45

Salut,

As-tu relancé le daemon après modification ?
$ man woman
Il n'y a pas de page de manuel pour woman.

Répondre à jipicy

2

julow, le 9 mar 2009 à 11:24:07

Le serveur a été redémarré plusieurs fois oui donc le deamon avec... Stop aux Hoax!

Répondre à julow

3

jipicy, le 9 mar 2009 à 11:27:24

Alors affiche ton fichier de configuration...
$ man woman
Il n'y a pas de page de manuel pour woman.

Répondre à jipicy

4

julow, le 9 mar 2009 à 11:33:35

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-­cbc,aes256-cbc
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
    PermitRootLogin no
    AllowUsers vlad

Stop aux Hoax!

Répondre à julow

5

jipicy, le 9 mar 2009 à 11:36:01

C'est pas le bon fichier, c'est dans "/etc/sshd_config" qu'il faut mettre la directive à no ;-\
$ man woman
Il n'y a pas de page de manuel pour woman.

Répondre à jipicy

6

julow, le 9 mar 2009 à 11:45:55

Et pour ce qui est du AllowUsers? Il se place aussi dans ce fichier de conf?

Merci à toi ^^ Stop aux Hoax!

Répondre à julow

7

jipicy, le 9 mar 2009 à 11:51:50

Oui.

man ssh_config
et
man sshd_config

pour toutes les directives...
$ man woman
Il n'y a pas de page de manuel pour woman.

Répondre à jipicy

8

 julow, le 9 mar 2009 à 12:00:34

Je dois donc le placer uniquement dans sshd_config lui aussi? ^^ Stop aux Hoax!

Répondre à julow