Tâche #21082
Scénario #21077: Traitement express MEN (34-36)
ssh -X impossible juste après instance
Description
Après avoir instancié un serveur en 2.6.2, une connexion en ssh -X
affiche :
X11 forwarding request failed on channel 0
Ce n'est plus le cas si on redémarre le service ssh et qu'on se connecte de nouveau.
Associated revisions
OpenSSH service must restart with network
Our template use the old upstart “restart” which is now replaced in
Ubuntu with “systemctl” or “invoke-rc.d”.
- tmpl/openssh-server: update template to conform to Ubuntu script.
Ref: #21082
History
#1 Updated by Daniel Dehennin over 5 years ago
Le problème vient du fait que le service SSH n’est pas redémarré lors de la phase d’instance.
Cela vient du template eole-common:source:tmpl/openssh-server qui utilise une commande upstart pour redémarrer le service:
--- /etc/network/if-up.d/openssh-server 2017-08-28 10:19:50.475489275 +0200
+++ openssh-server 2017-08-28 10:19:43.315488781 +0200
@@ -30,7 +30,13 @@
exit 0
fi
-# We'd like to use 'reload' here, but it has some problems; see #502444.
-restart ssh || true
+# We'd like to use 'reload' here, but it has some problems; see #502444. On
+# the other hand, repeated restarts of ssh make systemd unhappy
+# (#756547/#757822), so use reload in that case.
+if [ -d /run/systemd/system ]; then
+ systemctl reload --no-block ssh.service >/dev/null 2>&1 || true
+else
+ invoke-rc.d ssh restart >/dev/null 2>&1 || true
+fi
exit 0
Il faut mettre à jour ce template.
#2 Updated by Daniel Dehennin over 5 years ago
- Project changed from Distribution EOLE to eole-common
- Assigned To set to Daniel Dehennin
- Estimated time set to 2.00 h
- Parent task set to #21077
#3 Updated by Daniel Dehennin over 5 years ago
- % Done changed from 0 to 100
- Remaining (hours) set to 0.5
À voir s’il faut rétroporter ce commit (branche faite à partir de 2.6.0) :
- Modification d’un template
- Gravité assez limitée.
#4 Updated by Daniel Dehennin over 5 years ago
- Project changed from eole-common to Distribution EOLE
- Status changed from Nouveau to En cours
#5 Updated by Scrum Master over 5 years ago
- Status changed from En cours to Résolu
#6 Updated by Joël Cuissinat over 5 years ago
- Remaining (hours) changed from 0.5 to 0.0
Pas de rétro-portage mais création d'un test squash : http://squash-tm.eole.lan/squash/executions/5973
#7 Updated by Joël Cuissinat over 5 years ago
- Status changed from Résolu to Fermé