On 2017-08-17 01:56 +0000, 唐亮 wrote:
> pprof tool(https://github.com/google/pprof) uses gv to show picture, and gv 
> version 3.7.1, ssh to server.
> 
> but gv shows ‘gv: Unable to open the display.’
> 
> I installed gv through yum. no other setups.
> 
> How can I make it work?

How is the ssh connection established? Are you doing it, or is it done
internally by pprof?

X11 forwarding may be disabled by default, and has to be enabled. In
openssh, this is done with the -X or -Y flags to the ssh utility.

If you need to enable it permanently for a specific host in openssh, it
should be possible to add directives to $HOME/.ssh/config (see the
directives starting with ForwardX11 in the ssh_config manpage).

-- 
Nuno Silva

Reply via email to