> when I log in from my pc on a workstation somewhere a shell is opened. To
> redirect the display I have to set the variable display=$remotehost:0.
> My problem is when using ssh2 the variable remotehost is empty. Where can I
> get the proper value (the ip address of my pc)?
Actually you probably need to set DISPLAY rather than display. You could
parse SSH_CLIENT if that appears in your env, but that would not be secure
Have you tried using ssh-agent with ssh-add? Then your DISPLAY on the
remote box will automatically be set to a pseudo display that tunnels any
remote X programs back through ssh to your box.
However, I am not sure how to use ssh-agent with a GUI login (runlevel 5).
I boot to runlevel 3 (console) and have this alias in my ~/.bashrc (or
~/.alias in SuSE):
alias startx="ssh-agent startx"
Not sure if this works any differently in ssh2. I am using ssh1 or
OpenSSH with my ssh1 keys.
David Efflandt (Reply-To is valid) http://www.de-srv.com/