debug1: Remote: No xauth program; cannot forward with spoofing
How do I fix this problem and use X over ssh?
You need to have the xauth program installed on remote system. The xauth command is used to edit and display the authorization information used in connecting to the X server. You also need $HOME/.Xauthority default authority file.
Install xauth
Type the following command to install xauth under Fedora / RHEL / CentOS / Scientific / Red Hat Enterprise Linux:
# yum search xauth
# yum install xorg-x11-xauth
If you are using Debian / Ububtu Linux, enter:
$ sudo apt-get install xauth
The above command will install xauth and required libraries on the remote system. Now, you can connect using ssh as follows:
$ ssh -X user@s42.nixcraft.net.in
OR
$ ssh -X -C -c blowfish-cbc,arcfour user@s42.nixcraft.net.in
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 1 comment... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Yes, “yum install xorg-x11-xauth.x86_64” does resolve this issue on my CentOS 6.3(x86_64) machine.