#1 Le 13/08/2014, à 20:02
- Yann35133
[Résolu] problème demon sshd ne redémare pas
bonjour
je commence à monter un serveur sur une VM.
je modifie un peu la configuration de mon SSH. je veux ensuite redémarer le ssh, mais ça me donne ça :
root@ServerUbuntu14:~# /etc/init.d/ssh restart
root@ServerUbuntu14:~# /etc/init.d/sshd restart
bash: /etc/init.d/sshd: Aucun fichier ou dossier de ce type
je fais un "top" pour vérifier que j'ai un demon en cours, et ça me donne ça :
root@ServerUbuntu14:~# top
top - 20:00:34 up 25 min, 2 users, load average: 0,00, 0,01, 0,05
Tasks: 72 total, 1 running, 69 sleeping, 2 stopped, 0 zombie
%Cpu(s): 0,0 us, 0,3 sy, 0,0 ni, 99,3 id, 0,0 wa, 0,3 hi, 0,0 si, 0,0 st
KiB Mem: 2000952 total, 362256 used, 1638696 free, 20104 buffers
KiB Swap: 2045948 total, 0 used, 2045948 free. 274892 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
50 root 20 0 0 0 0 S 0,3 0,0 0:01.50 kworker/0:2
1255 yann 20 0 105624 2116 1048 S 0,3 0,1 0:01.33 sshd
1361 root 20 0 24848 1528 1132 R 0,3 0,1 0:00.04 top
1 root 20 0 33516 2780 1460 S 0,0 0,1 0:03.72 init
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 0:00.10 ksoftirqd/0
5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
6 root 20 0 0 0 0 S 0,0 0,0 0:00.81 kworker/u2:0
7 root 20 0 0 0 0 S 0,0 0,0 0:00.70 rcu_sched
8 root 20 0 0 0 0 S 0,0 0,0 0:00.65 rcuos/0
9 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
10 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcuob/0
11 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
12 root rt 0 0 0 0 S 0,0 0,0 0:00.03 watchdog/0
13 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 khelper
14 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
15 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
je ne sais pas bien interpréter ceci ! si quelqu'un a une idée
merci d'avance !
Dernière modification par Yann35133 (Le 13/08/2014, à 21:41)
Hors ligne
#2 Le 13/08/2014, à 20:50
- tiramiseb
Re : [Résolu] problème demon sshd ne redémare pas
Salut,
Comme pour beaucoup de services dans Ubuntu, ssh est passé à une configuration upstart.
Il ne faut plus utiliser directement les scripts dans /etc/init.d : avec la commande "service", ça utilise soit la configuration upstart, soit le script /etc/init.d, selon le besoin.
Donc :
sudo service ssh restart
Sébastien Maccagnoni - https://www.maccagnoni.eu - https://www.domotego.com
Hors ligne
#3 Le 13/08/2014, à 21:42
- Yann35133
Re : [Résolu] problème demon sshd ne redémare pas
merci tiramiseb !
je suis un tuto vidéo un peu ancien ^^
[Résolu]
Hors ligne