I want to use my local machine as the X server over ssh. But when I try to run ssh -X -v user@server1.example.com to the remote machine, I get the following error:
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
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 0 comments… add one now }