Saya mencoba mengatur XForwarding di atas ssh, tetapi gagal. Hasil yang sama terjadi apakah saya menggunakan argumen -X atau -Y untuk ssh. Kesalahan yang saya dapatkan.
a@ASUS-N53SM:~$ ssh -X -p 6623 pinker@192.168.0.200
pinker@192.168.0.200's password:
Last login: Sun Feb 2 18:42:08 2014 from 192.168.0.201
/usr/bin/xauth: (stdin):1: bad display name "pinker-server:10.0" in "remove" command
/usr/bin/xauth: (stdin):2: bad display name "pinker-server:10.0" in "add" command
xdpyinfo: unable to open display "pinker-server:10.0".
Di file klien ~ / .ssh / config
ForwardX11 yes
Di file klien / etc / ssh / ssh_config (komentar dihapus).
Host *
ForwardX11 yes
ForwardX11Trusted yes
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
Di file server / etc / ssh / sshd_config (komentar dihapus).
Port 6623
Port 6624
Port 6625
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
X11UseLocalhost no
AllowTcpForwarding yes
Saya menemukan Pertanyaan serupa ini , tetapi tidak ada jawaban yang berhasil.
MEMPERBARUI:
Di server, saya menambahkan ke file / etc / hosts.
127.0.0.1 pinker-server
Di server, saya menginstal paket xbase-clients
. Pada echo $DISPLAY
output koneksi ssh :0.0
.
Sekarang saya mendapatkan kesalahan baru.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
xdpyinfo: unable to open display "pinker-server:10.0".