When you use –X you’re telling it to open
an ssh tunnel. Typically that sets the DISPLAY variable and updates the
$HOME/.Xauthority file on the host and for the user to which you’re attaching.
Due to this you should NOT set the DISPLAY variable after login as it is the
tunnel session that sets it for you.
Also if your login is as one user (e.g.
ssh –X waleed) but you’re trying to su – root after the login then this DISPLAY
variable and the .Xauthority aren’t valid for the new user. In that case your
procedure should be something like this:
1) ssh –X waleed@<netbackup server name or IP>
2) echo $DISPLAY
3) Copy the DISPLAY value into your buffer.
4) su – (or su – root or sudo su – or sudo su – root – however you
normally become root)
5) export DISPLAY=<value copied in step 3>
6) export XAUTHORITY=/home/waleed/.Xauthority (or wherever the home directory
of the user you initially logged in as is).
I’ve seen that ssh tunnels don’t set
display for root on some hosts (e.g. HP-UX).
If all the above fails then you can do it
the old fashioned way:
1) xhost + <ip or hostname of your netbackup server>
2) ssh waleed@<netbackup server name or IP>
3) su – (or…)
4) export DISPLAY=<ip of your suse box>:0.0
For this method you have to be sure ports in
the 6000 range are open in any firewall between the suse box and the netbackup
server (including iptables if it is running).
Hi,
I am new to Netbackup, I have Solaris 10 Netbackup server, and I want run jnbSA from that server remotely using ssh
-X in Linux but I faced Java error message about X11 forwarding even I
configured DISPLAY variable, from other hand in Windows worked fine using
Netbackup-Java GUI.
Any suggestion?
Is there Netbackup-Java GUI avalibe for Linux box to connect Netbackup server?
---
Best wishes,
Waleed Harbi
-----------------------------------------------------------
Try not to become a man of success
but rather try to become a man of value.