Ssh 通过putty连接到远程主机

Ssh 通过putty连接到远程主机,ssh,x11,putty,xming,Ssh,X11,Putty,Xming,当我尝试连接到远程主机时,出现以下错误 Can't connect to X11 Windows server using "0:0" as the value of the display variable. 我怎样才能度过难关 其他资料: 1.我正在运行一台windows计算机,主机是基于unix的。 2.我已经安装了Xming。 3.我已将display命令设置为export display=0:0 4.我已经在SSH中选中了X11选项。这里有几个问题: 显示的格式为:。因此,您可能被告

当我尝试连接到远程主机时,出现以下错误

Can't connect to X11 Windows server using "0:0" as the value of the display variable.
我怎样才能度过难关

其他资料: 1.我正在运行一台windows计算机,主机是基于unix的。 2.我已经安装了Xming。 3.我已将display命令设置为export display=0:0
4.我已经在SSH中选中了X11选项。

这里有几个问题:

  • 显示的格式为:。因此,您可能被告知将其设置为“:0.0”,但这是错误的,因为这是本地计算机上的默认服务器

  • 当您使用ssh(启用X11转发)进行连接时,显示变量将由ssh设置为类似localhost:10.0的值,因此您不必再设置显示变量(除非.bashrc之类的更改)