#1 Le 31/07/2017, à 19:51
- hugodu13
[Résolu] Ubuntu 16.04.02 Xming et ssh forwarding
Bonjour,
Je viens de faire une installation toute fraiche de Ubuntu 16.04.02 et je cherche à utiliser le X11 forwarding dans putty sous windows avec le logiciel Xming.
D'habitude avec les linux j'ai pas trop de problème ca marche plutot bien, je m'assure juste que le X11 soit activé dans le /etc/ssh/ssd_config
Mais la bien qu'il le soit, je n'arrive pas a avoir l'affichage.
root@SERVEUR:~# xclock
Error: Can't open display:
root@SERVEUR:~#
Je crois que le gestionnaire d'affichage est lightdm et pas Xorg est ce que ca viens de ca ? on peut faire ca avec lightdm ?
root@SERVEUR:~# echo $DISPLAY
root@SERVEUR:~#
La variable $DISPLAY n'est pas existante,
Une idée ? Je sèche.
Merci de votre aide
Dernière modification par hugodu13 (Le 31/07/2017, à 20:05)
Hors ligne
#2 Le 31/07/2017, à 20:05
- hugodu13
Re : [Résolu] Ubuntu 16.04.02 Xming et ssh forwarding
Bon bein c'est bon c'est résolut, ca venait bien de lightdm, il fallait faire ca: http://blog.linuxjunkie.com/blog/2012/0 … u-lightdm/
1) Make sure you have the X11forwarding enabled.
Server: /etc/ssh/sshd_config
/etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
AllowTcpForwarding yes`
Client: /etc/ssh/ssh_config
/etc/ssh/sshd_config
ForwardX11 yes
ForwardX11Trusted yes
2) Enable lightdm to listen on TCP sockets
Modify and add line below to: /etc/lightdm/lightdm.conf
/etc/ssh/sshd_config
1
xserver-allow-tcp=true
3) If you have disabled IPv6, one more update to sshd_config is needed
Modify and add line below to: /etc/ssh/sshd_config
/etc/ssh/sshd_config
AddressFamily inet
4) Restart lightdm and sshd – or – Reboot
Après avoir fait ca, au lancement de la session ssh, ca me mettais:
/usr/bin/xauth: file /root/.Xauthority does not exist
J'ai juste créé un fichier vide en faisant
touch /root/.Xauthority
Et j'ai relancé la session ssh.
A+
Dernière modification par hugodu13 (Le 31/07/2017, à 20:06)
Hors ligne