Operating System - HP-UX
1826376 Members
4689 Online
109692 Solutions
New Discussion

Re: rsh from cygwin to HP server

 
SOLVED
Go to solution
Leslie Chaim
Regular Advisor

rsh from cygwin to HP server

How can I use rsh from cygwin to a HP server.

When I do â rsh zibra uptimeâ , I get â zibra: remshd: Login incorrect.â

When I try: â rlogin zibraâ , I just get "Login incorrect" and I am prompted with "login:" after which I CAN login successfully.

My problem is that rsh does not work. Also, my real goal is to download source from a cvs repository from the server.

Thanks
If life serves you lemons, make lemonade
23 REPLIES 23
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

If that's your real goal, then why not just install cvs on your machine and checkout your source? On the other hand, for "rsh" or "remsh" on HP/ux to work, you need an account on the hp box and if you don't want to have to log in with it first, you need to have a .rhost file in your home directory that has your cygwin hostname in it. Also, the HP-UX box must be able to resolve the cygwin box.
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

I did a cut 'n' paste from MS Word and my smarty quotes turned out to be dumb:(

Let me try this again. Thanks
==========================================
How can I use rsh from cygwin to a HP server.

When I do "rsh zibra uptime", I get "zibra: remshd: Login incorrect."

When I try: "rlogin zibra", I just get "Login incorrect" and I am prompted with "login:" after which I CAN login successfully.

My problem is that rsh does not work. Also, my real goal is to download source from a cvs repository from the server.

Thanks in advance
If life serves you lemons, make lemonade
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

Hey Mark, you beat be there:)

I do have cvs on my cygwin machine. I want to checkout my source from the HP box by using cvs â d :extâ ¦and I have an account on the HP box.

I placed my cygwin hostname in my home dir on the HP box. I think the problem may be with cygwin my login name is not the same as on the HP box. Should this be the case, then how do I create a new cygwin
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

Hi :) No idea how you would create a user on your cygwin box but you can do "rsh -l username hostname" to attempt to rsh as a different user and as long as that user has the .rhost file your shoul dbe able to get in.
Never preceed any demonstration with anything more predictive than "watch this"
Umapathy S
Honored Contributor

Re: rsh from cygwin to HP server

Leslie,
Try to export USERNAME to the one on hpux and do rsh. But I am not sure.
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

When I do "rsh -l user host" followed by a command I get the same "zibra: remshd: Login incorrect." and the .rhosts file does not help.

Without a command I am just prompted with the "password" and I am able to login and this works even with no .rhosts file!

I tried the USERNAME thing it does not help.
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

Ok, now check that /var/adm/inetd.sec on the hp-ux box will allow your host to use rsh too.

The .rhosts file will definately be required if you don't want to enter a pssword.
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

The inetd.sec file does not exist. I saw the man page that this indicates the "security is limited to that implemented by the servers." Not sure what this means exectly, but I am able to login/telnet and as I mentined before with the rsh command as well.
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

You know, I have had this same problem so many times and it has made me quite mad in the past.

Is the .rhosts file owned by the correct user?

Try putting the ip address of the cygwin box in .rhosts instead of the hostname (could have a name resolution issue)

Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

I put the IP of the cygwin box in my .rhosts file in my home dir on the HP box but I still cannot connect:(

Also, (just FYI) I tired to 'ping'ing my cygwin from from HP and it works only with the IP addresss.
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

OK, try this. Put your cygwin hostname and ip in /etc/hosts and make sure /etc/nsswitch.conf is set to do files before DNS. I think we might be getting somewhere
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

OK, then I will have to go and tickle my sysadmin...

I'll be back on Monday:)

Thanks for your help, Mark

Cheers,

Leslie
If life serves you lemons, make lemonade
RolandH
Honored Contributor

Re: rsh from cygwin to HP server

Hi Leslie,

have you a /etc/shells file on you hpux box.
If yes - you should add the rsh shell to that file. /etc/shells must owned by root:sys and the permissions 644.
Same permissions for .rhost file in $HOME dir but this should be owned by the user, who own the $HOME.

HTH
Roland

Sometimes you lose and sometimes the others win
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

I got it to work!

Following the idea of putting the IP address in the .rhosts file and from the manpage, I put the IP followed by my cygwin USER and it works... from cygwin. Thanks Mark for your guidance.

Talking about goals... my REAL goal was to connect to the cvs server from the Eclipse IDE. I am still searching...

All I get back when trying to connect is:

"Unknown response received from cvs server: "

Any ideas?
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

Hi again Leslie,

Are you running the correct version of client for the cvs server?
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

I am not sure about Eclipse and what version of cvs client it uses.

My cygwin version is 1.11 and connects to the cvs server on the HP box which is 1.11.2
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor

Re: rsh from cygwin to HP server

Have you tried doing normal command line cvs stuff from the command line for example a simple "cvs co" etc etc? Just to make sure that the cvs server is working correctly?
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

Yes I did and it works from cygwin. However, I just noticed that it does not work from a DOS window.
If life serves you lemons, make lemonade
Umapathy S
Honored Contributor

Re: rsh from cygwin to HP server

Leslie,
The way cygwin shell (bash) interprets the env var CVSSERVER will be different than in a dos env.
Surely, its a problem with eclipse. Look out for any upgrades or patches of eclipse.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

Ok, I can coonnect to the cvs server from a DOS window. I placed the cygwin\bin at the head of Windows %PATH% variable, and it's fine. But I still can't connect with Eclipse and I just installed it last week. So I 'think' I have the latest version.
If life serves you lemons, make lemonade
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

I got it to work in Eclipse! :)

It appears that Eclipse uses it's own inernal CVS_RSH var. I found this seeting in the drop down menu Window->Preferences->Team->CVS->Ext Connection Method

Thanks for all your help,

Leslie
If life serves you lemons, make lemonade
Mark Grant
Honored Contributor
Solution

Re: rsh from cygwin to HP server

Leslie, you're a star!
Never preceed any demonstration with anything more predictive than "watch this"
Leslie Chaim
Regular Advisor

Re: rsh from cygwin to HP server

Thanks for the opportunity to give this a 'bunny' status!
If life serves you lemons, make lemonade