Difference between revisions of "X11 Forwarding"

From Amahi Wiki
Jump to: navigation, search
m
Line 5: Line 5:
 
For this to work requires your Amahi server to have an X server installed. Second is the ability to receive ssh connections (configured by default). Finally, ssh must be configured to allow X11 forwarding. Check ''/etc/ssh/ssh_config'' and make sure the directive is set:
 
For this to work requires your Amahi server to have an X server installed. Second is the ability to receive ssh connections (configured by default). Finally, ssh must be configured to allow X11 forwarding. Check ''/etc/ssh/ssh_config'' and make sure the directive is set:
  
'''X11Forward yes'''
+
 
 +
    X11Forward yes
 +
 
  
 
Once this is configured you are ready to forward application windows.
 
Once this is configured you are ready to forward application windows.
Line 11: Line 13:
 
From the client machine, where you want the application to be displayed, you ssh into the remote system so you have a command prompt. The can attained using the ssh command. When using the ssh command we need to use the ''-X'' flag, this tells ssh that we plan to tunnel x traffic through the tunnel:
 
From the client machine, where you want the application to be displayed, you ssh into the remote system so you have a command prompt. The can attained using the ssh command. When using the ssh command we need to use the ''-X'' flag, this tells ssh that we plan to tunnel x traffic through the tunnel:
  
'''ssh -X user@hda'''
+
 
 +
    ssh -X user@hda
 +
 
  
 
Enter your password at the login prompt. You should see the prompt change into ''[user@localhost ~]$'' Once logged in, run the following command to see a file window:
 
Enter your password at the login prompt. You should see the prompt change into ''[user@localhost ~]$'' Once logged in, run the following command to see a file window:
  
'''nautilus'''
+
 
 +
    nautilus
 +
 
  
 
This should open a gnome file window as if on the server locally.
 
This should open a gnome file window as if on the server locally.
Line 23: Line 29:
 
If the ''/etc/ssh/ssh_config'' file on the Amahi server contains the following line (set by default):
 
If the ''/etc/ssh/ssh_config'' file on the Amahi server contains the following line (set by default):
  
'''ForwardX11Trusted yes'''
+
 
 +
    ForwardX11Trusted yes
 +
 
  
 
Then it's possible to use trusted X11 forwarding. Trusted X11 forwarding is slightly faster than untrusted because it doesn't engage the X11 security controls. The -Y flag is used when using trusted X11 forwarding:
 
Then it's possible to use trusted X11 forwarding. Trusted X11 forwarding is slightly faster than untrusted because it doesn't engage the X11 security controls. The -Y flag is used when using trusted X11 forwarding:
  
'''ssh -Y user@hda'''
+
 
 +
    ssh -Y user@hda
 +
 
  
 
===Compressed X11 Forwarding===
 
===Compressed X11 Forwarding===
Line 33: Line 43:
 
When using slower links, X11 data can be compressed using the ''-C'' flag:
 
When using slower links, X11 data can be compressed using the ''-C'' flag:
  
'''ssh -Y -C user@hda'''
+
 
 +
    ssh -Y -C user@hda

Revision as of 19:03, 20 June 2010

X11 Forwarding

Prerequisites for remotely displaying applications

For this to work requires your Amahi server to have an X server installed. Second is the ability to receive ssh connections (configured by default). Finally, ssh must be configured to allow X11 forwarding. Check /etc/ssh/ssh_config and make sure the directive is set:


   X11Forward yes


Once this is configured you are ready to forward application windows.

From the client machine, where you want the application to be displayed, you ssh into the remote system so you have a command prompt. The can attained using the ssh command. When using the ssh command we need to use the -X flag, this tells ssh that we plan to tunnel x traffic through the tunnel:


   ssh -X user@hda


Enter your password at the login prompt. You should see the prompt change into [user@localhost ~]$ Once logged in, run the following command to see a file window:


   nautilus


This should open a gnome file window as if on the server locally.

Trusted X11 Forwarding

If the /etc/ssh/ssh_config file on the Amahi server contains the following line (set by default):


   ForwardX11Trusted yes


Then it's possible to use trusted X11 forwarding. Trusted X11 forwarding is slightly faster than untrusted because it doesn't engage the X11 security controls. The -Y flag is used when using trusted X11 forwarding:


   ssh -Y user@hda


Compressed X11 Forwarding

When using slower links, X11 data can be compressed using the -C flag:


   ssh -Y -C user@hda