Sponsored Content
Operating Systems Linux Red Hat Xming Vs ssh connect to RHEL server from Windows machine Post 302769516 by chilinski on Tuesday 12th of February 2013 01:53:17 PM
Old 02-12-2013
It may be that you don't have the display variable set up on the linux side.

When I want to use the Sun Java Directory Server on my LDAP server, I ssh to the machine and run this little script:

Code:
#! /bin/bash
#This little script reads the ipaddress of the session that just logged
#in via SSH and sets up the xwindows display. Exceed must be running
#on the local terminal first.

echo "Do you have Exceed or Xming running? (y or n) and Enter"
read response
if [ "$response" == "y" ]; then
ip_addr=${SSH_CONNECTION%% *}
DISPLAY=$ip_addr:0.0
export DISPLAY
/var/mps/serverroot/startconsole
fi

This sets the DISPLAY variable based on the ip from which you connnected. The linux box needs to know where to send the display based on the DISPLAY variable. In my script, after the variable is set, it runs the startconsole program. This is on a Solaris system; on a normal linux system Xterm is usually used.

So, typically, you would ssh to the box, set the DISPLAY and then run the program you want on the Linux machine. Does that make sense?

Moderator's Comments:
Mod Comment edit by bakunin: PLEASE! My supply of CODE-tags is already running low as i have to give them away the whole day long. Please use your own CODE-tags for your code (not Italic-tags) so that mine last a little longer. This code tag video shows you how. Thank you.

Last edited by bakunin; 02-13-2013 at 12:34 PM..
 

10 More Discussions You Might Find Interesting

1. AIX

Connect from Windows Using SSH

Hi Everybody, I have 2 Servers (AIX 4.3), recently I installed SSH in both servers successfuly. I can connect from one server to another using SSH. My problem is when I tried to connect from Windows workstation to one of these servers the connection timed out. I'm using PUTTY to connect to the... (12 Replies)
Discussion started by: aldowsary
12 Replies

2. Shell Programming and Scripting

SSH into a linux machine from a windows machine

I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies

3. Solaris

How to mount a Files System where RHEL is installed on a Sun server Machine..

Hi Everyone, I have a machine where RHEL(Red Hat Enterprise Linux) is installed and few of our products are saved on the same. Our products work only on sparc 6 + and i want to basically asve the products on the machine which has RHEL installed on it and mount the drive on the sun server and... (2 Replies)
Discussion started by: sankasu
2 Replies

4. Solaris

Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat)

hi Am trying to connect from Solaris 9 installed Sun server and having Tomcat 5.5.9 installed on top of it to Windows 2003 server with IIS installed for web application. Scenarios am facing are 1. From Sun system am able to ping and telnet ip with port 80 of windows 2000 system which is... (2 Replies)
Discussion started by: aemunathan
2 Replies

5. Linux

Help!! trying to connect to linux SSH from windows putty client

Hi, i am trying to connect my Putty session on a windows box to a linux SSH, i have generated private and public key pairs using puttygen, i have set the public one to be in an OPENSSH format... and have put this in my authorized_keys file in linux, when i connect i get the following errors: ... (1 Reply)
Discussion started by: Jtyreman
1 Replies

6. Ubuntu

Steps to connect linux (Ubuntu) machine from windows 7

Hi, Can anyone give me the steps to connect ubuntu from windows7? Thanks (1 Reply)
Discussion started by: diehard
1 Replies

7. Red Hat

Graphically connect RHEL server from Windows 7 Professional

I want to connect RHEL server from my windows 7 Professional machine graphically. I logged into 1 RHEL server with IP, 10.101.17.80 using Putty from my Windows 7 professional machine. Now from this server, 10.101.17.80, I want to connect to another RHEL server 10.101.17.79. I used, ssh -X... (1 Reply)
Discussion started by: RHCE
1 Replies

8. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

9. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

10. Linux

How to connect Linux server (configure two way authentication) with Windows server?

Hi my name is Manju. ->I have configure the two way authentication on my linux server. ->Now I am able to apply two way authenticator on particuler user. ->Now I want to map this linux server to my AD server. ->Kindly tell me how to map AD(Active Directory) with this linux server. ... (0 Replies)
Discussion started by: manjusharma128
0 Replies
pdweb(1M)																 pdweb(1M)

NAME
pdweb - start the HP-UX Peripheral Device tool, part of the System Management Homepage Web interface. SYNOPSIS
Path: DESCRIPTION
The HP-UX Peripheral Device tool (pdweb) can be used to easily and quickly view I/O devices and OLRAD cards. It helps manage hot pluggable PCI slots on systems that support adding and replacing cards without rebooting. On all HP-UX systems, will display the I/O devices and can be used to (re)create device files for a selected device. The HP-UX Peripheral Device tool user interface uses a Web browser. Executing the command, with DISPLAY variable set and without any options performs the following tasks: o start the System Management Homepage Web server and o start a Web client (browser) An attempt will be made to connect to the browser specified with the BROWSER environment variable, or Mozilla, or Netscape. The Web browser will be displayed on the X server defined by the DISPLAY environment variable. If a running browser is found, it will be used, otherwise a new session will be initiated. This will only happen if the browser process is running on the same system used to exectue the pdweb command (defined by the DISPLAY variable), unless the option is used. Options The recognizes the following options: Opens the terminal interface for Cards and Devices regardless of the current setting of the DISPLAY environment variable. Forces a client browser to be used in less secure ways. Two security features are overridden by the option. The option forces the client browser to be used or started, even if the X-traffic between the X-server and the Mozilla browser is not secure. When is invoked by the option is used. Only a priviledged user (root) can execute When used with the option, a temporary login bypass key will be generated. The bypass key allows the user to access the Web interface without having to provide login information again. Only use this option if you are sure the network traffic is secure between the host where Mozilla is running, and the host in the DISPLAY variable. The browser uses URL http://hostname:2301/ and you may paste this into any browser if a browser does open with the pdweb command. Online Help Once the HP-UX Peripheral Device tool is started, the online help provides details on how to use the tool. RETURN VALUES
Upon completion, returns one of the following values: Successful. An error occurred. AUTHORS
pdweb was developed by Hewlett-Packard SEE ALSO
hpsmh(1M), smhstartconfig(1M), olrad(1M), ioscan(1M), insf(1M) pdweb(1M)
All times are GMT -4. The time now is 03:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy