- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsh and ssh from Linux to HP-UX
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
Forums
Discussions
Discussions
Discussions
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
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
09-09-2003 10:59 AM
09-09-2003 10:59 AM
rsh barny -l al "cat /home/al/list1" >> /tmp/list1.
If I do this from HP-UX (barny) to linux (fred) this works fine. If I do it from linux to HP-UX it hangs. I can see that it creates a file with /tmp/sam with 0 bytes. It is not able to execute it.
I have changed the security under /etc/pam.d/rsh on linux to "sufficient". I don't have kerberos on this machine? Is that a problem. I don't understand why this is not working? Can anybody have any experience in this?.
Since this didnt work, I tried ssh from linux to HP-UX ......
I tried ssh command
ssh barny -l al "cat /home/al/list1" >> /tmp/sam1
The error message is
ssh: connect to host barny port 22: Connection refused. How can this be tackled.? I do have l .rhosts file that contains all the machine names including this machine.
. If somebody can help me with setting up ssh, that will be appreciated too..
I just need either rsh or ssh to work. Both seems to be stcuk...
I would appreciate immediate help
Regards
Sam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:06 AM
09-09-2003 11:06 AM
SolutionCheck out the iptables configuration on the Linux box and make sure the appropriate port is open.
For a quick test:
As root:
service iptables stop
re-run the test. If successful, you need to decide if you want to reconfigure the firewall.
Next, ssh is a better way to go here.
I'm attaching a great 2 page paper, written by Chris Vail that tells you exactly how to exchange public keys and get your command working in ssh.
port 22 will need to be open to traffic, two way on the Linux box.
In either instance, /etc/services must be correct on the Linux box.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:48 AM
09-09-2003 11:48 AM
Re: rsh and ssh from Linux to HP-UX
add + in your /etc/hosts.equiv file on hp system just to test.
shell creates file first then runs the command if redirection is being used. so it is normal that you have a file with 0 byte.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:56 AM
09-09-2003 11:56 AM
Re: rsh and ssh from Linux to HP-UX
So I have another one.
tail -f /var/adm/syslog/syslog.log on HP-UX
tail -f /var/log/messages on Linux.
Try the transfer, follow the messages where they lead.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 12:14 PM
09-09-2003 12:14 PM
Re: rsh and ssh from Linux to HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 03:37 AM
09-10-2003 03:37 AM
Re: rsh and ssh from Linux to HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 10:28 AM
09-10-2003 10:28 AM
Re: rsh and ssh from Linux to HP-UX
Thanks. Your suggestion seems to be progressing except that I don't know how to open port 22. Since that is not open on HP-UX 10.20 box that we have, I get connection refused when I try ssh command on HP. I successfully got into a LInux box.
Please let me know the fundamentals of the port 22 open that i need to do.
Thanks for the help in advance.
Regards
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 11:04 AM
09-10-2003 11:04 AM
Re: rsh and ssh from Linux to HP-UX
We don't use ssh in any of our hp system so I do't have a example for it. But all the ports are in /etc/services and /etc/inetd.conf file.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 11:20 AM
09-10-2003 11:20 AM
Re: rsh and ssh from Linux to HP-UX
Your "rsh" (equivalent to remsh on HP-UX) problem could be a firewall issue . Remote Shell requires a first connection for the command from a reserved port on the Linux side(ports from 512-1023) to port 514 on the HP side. Then the HP gets a reserved port to listen for a connection for the data returned by the command, ie., the cat output. The Linux box tells the HP side what port to connect to via the command connection, then the HP side acquires another reserved port for the data, and connects from reserved port (512-1023) to reserved port (512-1023) on the Linux side, sends the output, and closes.
Bottom line, any firewall needs to pass connections to and from these reserved port ranges in order to allow remsh aka. rsh to function.