0

I am trying to use RSH commands using for example: rsh -l root 10.0.2.5 "ls"

When I run this command I get

getnameinfo: Temporary failure in name resolution

but I get a shell by just running rsh -l root 10.0.2.5

How do I fix this issue? (I have to use RSH, I am exploiting this service suggesting a switch would defy the point)

6
  • I believe rsh needs rDNS working on the target machine Commented Jun 5, 2017 at 9:48
  • @roaima its confusing why it needs the rDNS to send a command when I can get a shell :s Commented Jun 5, 2017 at 9:56
  • Does rsh -l root 10.0.2.5 "ls" always fail and rsh -l root 10.0.2.5 always work? Does it matter if you try them the other way around (say with an hour wait in between)? Commented Jun 5, 2017 at 9:56
  • @EightBitTony always Commented Jun 5, 2017 at 9:57
  • Is this the original rsh that trusts the client for "verification" or the one with kerberos added? Commented Jun 5, 2017 at 10:08

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.