- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH and export DISPLAY
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 02:45 AM
тАО10-07-2003 02:45 AM
SSH and export DISPLAY
I log in to my hpux system with ssh. On other maschines I am used to see my DISPLAY exported automatically. In my case this is not apearing. The DISPLAY is empty.
What do I have to check to correct this behaviour. Thanks for any hints,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 02:54 AM
тАО10-07-2003 02:54 AM
Re: SSH and export DISPLAY
What ssh client are you using? I'm using the ssh client that comes with Red Hat Linux. When i want to enable X11 forwarding, I use the -X switch to the ssh command. That is:
ssh -l MyUsername ServerIpNumber -X
and then I can run all X applications and I'll see them on my local X Server. Doing this (using the -X switch argument) will set my DISPLAY variable on my session.
Also, check on your server this file:
/opt/ssh/etc/sshd_config and verify the value for X11Forwarding. Make sure it has "Yes" as its value. Otherwise, you won't be able to tunnel X11 connections.
Hope that helps,
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 02:56 AM
тАО10-07-2003 02:56 AM
Re: SSH and export DISPLAY
add to your .profile entry:
export DISPLAY=
who -Rm shows your ip, you can script it if your ip is changing.
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 03:05 AM
тАО10-07-2003 03:05 AM
Re: SSH and export DISPLAY
wow=$(who -m -R|cut -d'(' -f2|cut -d ')' -f1)
export DISPLAY=$wow":0.0"
--Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 03:13 AM
тАО10-07-2003 03:13 AM
Re: SSH and export DISPLAY
ip=`who -Rm|awk -F'(' '{print $2'}|awk -F')' '{print $1}'`
export DISPLAY=$ip:0.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 03:24 AM
тАО10-07-2003 03:24 AM
Re: SSH and export DISPLAY
Unfortunately I did not manage to bring it up running. I modified the /opt/ssh/etc/ssh_config file (Uncommented the line with ForwardX11 and changed to yes) and I used the ssh -i myname servername -X.
Nothing changed at all. When I type echo $DISPLAY I receive empty blank line.
The solutions with the profiles are good ideas. I realized this way of X11 forwarding within my userprofiles on the maschines. But other userswho are not so familiar with unix asked me for setting up the automaticall forwarding.
Thanks for more hints in advance.
Best regards,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2003 03:25 AM
тАО10-07-2003 03:25 AM
Re: SSH and export DISPLAY
.
On the servers you connect to, you need to edit sshd_config in /etc/ssh (or whereever you store it)and enable X forwarding..
.
These is the key... your DISPLAY envar will not actually be set to your originating client machine but to localhost:10 or someting dependng on how you set up your sshd_config.
.
.
HTH