Project

General

Profile

Support #720

X11 Forwarding in a FreeBSD Jail

Added by Daniel Curtis almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
SSH Server
Target version:
Start date:
01/10/2016
Due date:
% Done:

100%

Estimated time:
0.25 h
Spent time:

Description

This is a simple guide on forwarding graphical X11 applications in a FreeBSD jail over an SSH connection.

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    
  • Install xauth:
    pkg install xauth
    
  • Edit the SSHd config:
    vi /etc/ssh/sshd_config
    
    • Make sure following three lines exist:
      AllowTcpForwarding yes 
      X11Forwarding yes 
      X11UseLocalhost no
      
  • Restart SSH:
    service sshd restart
    
  • Now SSH into the jail using the -X flag to use X Forwarding:
    ssh -X jail.example.com
    

Resources

Also available in: Atom PDF