The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
network config problem - how to set the server for others to ssh without password GCTEII SUN Solaris 1 05-11-2006 05:58 PM
NIS config problem nikk UNIX for Advanced & Expert Users 5 09-21-2003 10:29 PM
553 config error: mail loops back to me (MX problem) bluehell UNIX for Dummies Questions & Answers 5 05-19-2003 09:24 AM
config.inc.php ? perleo Shell Programming and Scripting 1 12-08-2002 07:28 AM
SSH and config..... penguin-friend UNIX for Advanced & Expert Users 1 01-07-2002 10:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2004
Registered User
 

Join Date: Jul 2004
Location: Canada
Posts: 3
SSH config problem

Hello everyone

I do have 3 servers.

1. HPUX1
2. HPUX2
3. LINUX1

I am trying to config ssh on the servers.

1. From both HPUX server, I can use ssh to reach the linux server.
HPUX1 > ssh root@linux1
HPUX2 > ssh root@linux1

But, I cannot reach any off the HPUX server from any server.
LINUX1 > ssh root@hpux1
LINUX1 > ssh root@hpux2
HPUX1 > ssh root@hpux2
HPUX2 > ssh root@hpux1

All those command result with the following error:
ssh: connect to address XXX.XXX.XXX port 22. Connection refused.

The address mention in the error message is correct. It is pointing to the right server.

In all servers, the port 22 is define like follow:
ssh 22/udp
ssh 22/tcp

The question:
What should I look to make that thing work?

stjacqd
Reply With Quote
Forum Sponsor
  #2  
Old 07-29-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Check your /etc/hosts.allow and /etc/hosts.deny files - to allow the linux box and other HP boxes to go to a HP box, it has to allow ssh from that IP range.
Reply With Quote
  #3  
Old 07-29-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Ummm... you are running sshd on the HP boxes, right?
Reply With Quote
  #4  
Old 07-29-2004
Registered User
 

Join Date: Jul 2004
Location: Canada
Posts: 3
Hello RTM

I do not have /etc/hosts.allow neither /etc/hosts.deny in the HP box.

I do have an hosts.equiv that contain the list of the linux IP address.


The linux server does have the /etc/hosts.allow and deny that are set, I think properly.

LINUX1: hosts.deny
http-rman : ALL EXCEPT LOCAL
portmap:ALL

LINUX1: hosts.allow
portmap: XXX.XXX.XXX.XXXX HPUX1
portmap: XXX.XXX.XXX.XXXX HPUX2

Should O create an hosts.deny and allow on the HP servers?
Reply With Quote
  #5  
Old 07-30-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
As Perderabo asked " You are running sshd on the HP boxes, right?"

Use your ps command to see if there is a sshd process running. Check your startup scripts for one for sshd. Try to ssh from HPUX1 to HPUX1.
Reply With Quote
  #6  
Old 07-30-2004
Registered User
 

Join Date: Jul 2004
Location: Canada
Posts: 3
I did run sshd on the HP servers and everything work.

Thank you Perderabo and RTM for your help that has been highly appreciated.

Now I do have another question.

When I am using the commande :
mt -f HPUX1:/dev/rmt/3m status

it does work but it does ask me a passwork.

Is it possible to not have to enter any password?
I have to use a command from Informix to restore through the network. ( ontape -r )

But that command doesn't work like ( mt ). There is no password asked, but there is an error. It is look like for me that is a permission error but I do not have any idea what to look at.

the error is:
Physical restore failed - function read archive backup failed code 1 errno 0

I can only imagine that is a permission error. And I do assum that is related with ssh.

So, the question is :
Is it possible, with ssh, to grant all power to another server user?
If so, how does it work if the users are not define exactly look a like on both servers?

stjacqd
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0