I used Xshell tool(default configuration) to ssh to the server. 


-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 
发送时间: 2017年8月17日 21:52
收件人: [email protected]
抄送: 唐亮
主题: Re: [help-gv] gv: Unable to open the display.

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