[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting ssh -X to work. (Was: sane access for non-root user)

On Wed, 14 Dec 2005, hendrik@topoi.pooq.com wrote:

> On Tue, Dec 13, 2005 at 02:28:18PM -0500, Brad Sawatzky wrote:
> > 
> > A quick workaround to initialize an up-to-date login environment is to 
> > 'ssh -X localhost' from within a local shell...
> I just tried that on my sarge system., whose ssh documentation does
> mention ssh.  But in the new shell
>   env did not give me an entry for DISPLAY
>   emacs opened in text mode
>   xjig said
>     can't open display ''
> Evidently, something more is needed than just ssh -X localhost.
> some additional package maybe?

No, odds are sshd is just set to disable X11 forwarding.  Add/change the
following line
  X11Forwarding yes
in '/etc/ssh/sshd_config' and restart sshd (as root)
  /etc/init.d/ssh reload
(That won't affect any existing ssh sessions.)

-- Brad

Reply to: