LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rsh and rlogin on Linux to HP-UX (https://www.linuxquestions.org/questions/linux-networking-3/rsh-and-rlogin-on-linux-to-hp-ux-90950/)

sammathew 09-09-2003 01:46 PM

rsh and rlogin on Linux to HP-UX
 
Please help me with this rsh problem. I am running rsh to execute a command on another HP-UX machine. I give this command
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?.
I don't need ssh since it is in a trusted network. ssh I understand is more secure, but it is more botheration to set up I guess. If somebody can help me with setting up ssh, that will be appreciated too..
I would appreciate immediate help
Regards
Sam

jonas_larson 09-09-2003 04:17 PM

Hi Sam,

ssh isn't hard to set up and you can do all you can with rsh/telnet/ftp...

check out www.openssh.org, they have pkg's for HP-UX aswell..
(on linux you probably already have it installed...)

But that wasn't your question... ;o)

It was a while ago since I worked with rsh cmd's (I am an old HP-UX admin) but I think the problem might be your .rhosts file on barney?!

How is it setup?

Regards

Jonas

PS: to do the same thing with ssh;
ssh al@barney "cat /home/al/list1" >> /tmp/list1
DS


All times are GMT -5. The time now is 06:48 PM.