ssh -X user@remote-redhat-server xtermgot the following error:
X11 forwarding request failed on channel 0
Solution:
- Login the remote Redhat server via ssh:
ssh user@remote-redhat-server
- Enable X11 forwarding in /etc/ssh/sshd_config:
sudo vi /etc/ssh/sshd_config
X11Forwarding yes X11UseLocalhost no
- Install xauthroity:
sudo yum install xauth
- Important: Reload ssh server:
sudo /etc/init.d/ssh reload
No comments:
Post a Comment