LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2018, 02:35 AM   #1
ganeshbelki
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Rep: Reputation: Disabled
rsh to server no working


I am trying enable rsh on both client and server by adding all the required files.
When I try to do rsh from client to server:
[root@RSH_NE_2 ~]# rsh 127.1.2.26 -l root pwd
getnameinfo: Temporary failure in name resolution

I do get same error when I try rsh from server to client.

I have added both client and server IPs(127.1.1.26 and 127.1.2.26) to /root/.rhosts

If I add following two lines to /etc/hosts in both client and server, rsh starts working. Can anyone tell me whats going wrong in my setup?
127.1.1.26 Test1
127.1.2.26 Test2
 
Old 01-11-2018, 03:48 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
it is there: failure in name resolution
rsh tries to check hostnames and nothing found...
 
Old 01-11-2018, 04:13 AM   #3
ganeshbelki
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
This should happen only when hostname is used to rsh instead of IP.
In my case, I am using IP to rsh.
Any thoughts?
 
Old 01-11-2018, 04:14 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
In that case this did not happen at all. Or how should I understand your statement?
 
Old 01-11-2018, 04:20 AM   #5
ganeshbelki
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
I mean to say, I used IP address to rsh like below:
[root@RSH_NE_2 ~]# rsh 127.1.2.26 -l root pwd
getnameinfo: Temporary failure in name resolution
 
Old 01-11-2018, 02:59 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I don't know/have never used rsh but I was curious so I searched for "rsh getnameinfo error" and read these things:
1. You might want to consider using ssh. rsh is an obsolete and insecure protocol
2. You have your command argument order wrong. It thinks you're connecting to a server name root and it can't resolve the name.
[from man rsh:
Code:
rsh [-Kdnx] [-l username] host [command]
and
3. rsh needs reverse DNS working for both machines.
these all from an old thread on another forum...]

I doubt that 3. is correct..., and I also question 1... but 2. certainly seems to apply. Looks like your command should be
Code:
rsh -l root 127.1.2.26 pwd
As pan64 pointed out, the problem was reported to you very clearly by rsh.

Last edited by scasey; 01-11-2018 at 03:00 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tar multi-volume not working through rsh eamesj Linux - Hardware 2 01-10-2013 09:34 PM
[SOLVED] RSH Logins Not working d072330 Linux - Networking 13 11-08-2012 10:08 AM
cannot access rsh but ssh is working just fine xear Linux - Networking 6 02-19-2009 08:10 AM
Remote login with RSH not working atulyahigh Linux - Software 2 02-11-2008 04:05 AM
RSH not working... help hardian_97 Linux - Newbie 1 08-08-2005 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration