I am trying to use RSH commands using for example: rsh -l root "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

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

  • I believe rsh needs rDNS working on the target machine 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
    – TheHidden
    Jun 5, 2017 at 9:56
  • Does rsh -l root "ls" always fail and rsh -l root always work? Does it matter if you try them the other way around (say with an hour wait in between)? Jun 5, 2017 at 9:56
  • @EightBitTony always
    – TheHidden
    Jun 5, 2017 at 9:57
  • Is this the original rsh that trusts the client for "verification" or the one with kerberos added? Jun 5, 2017 at 10:08


You must log in to answer this question.

Browse other questions tagged .