I wanted to open a GUI tool like gedit on a remote machine but I get error cannot open display. Any suggestions please.
Code: Select all
ma@mint-18-uma ~ $ ssh -X ryzen
Warning: the ECDSA host key for 'ryzen' differs from the key for the IP address '192.168.1.20'
Offending key for IP in /home/uma/.ssh/known_hosts:31
Matching host key in /home/uma/.ssh/known_hosts:23
Are you sure you want to continue connecting (yes/no)? yes
uma@ryzen's password:
14 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
Last login: Tue May 4 19:58:27 2021 from 192.168.1.10
Can't open display localhost:10.0
xgamma: unable to open display 'localhost:10.0'
(base) uma@uma ~ $ gedit
Unable to init server: Could not connect: Connection refused
(gedit:13693): Gtk-WARNING **: 23:45:31.510: cannot open display: localhost:10.0
(base) uma@uma ~ $