What's the difference between rlogin and rsh?


Recommended Posts

I googled it and still don't understand. What's the difference between rlogin and rsh?

Actually, I'm not sure what either is.

rlogin - Doesn't that act like a remote log in? I rlogin to my server from a work station.

So why does rsh do the same thing?

Link to comment
Share on other sites

lrwxrwxrwx 1 root root 24 2007-08-30 13:18 /usr/bin/rlogin -> /etc/alternatives/rlogin

lrwxrwxrwx 1 root root 15 2008-09-25 14:17 /etc/alternatives/rlogin -> /usr/bin/slogin

lrwxrwxrwx 1 root root 3 2008-09-25 13:44 /usr/bin/slogin -> ssh

lrwxrwxrwx 1 root root 21 2007-08-30 13:18 /usr/bin/rsh -> /etc/alternatives/rsh

lrwxrwxrwx 1 root root 12 2007-08-30 13:18 /etc/alternatives/rsh -> /usr/bin/ssh

At least on this box at work.

Link to comment
Share on other sites

lrwxrwxrwx 1 root root 24 2007-08-30 13:18 /usr/bin/rlogin -> /etc/alternatives/rlogin

lrwxrwxrwx 1 root root 15 2008-09-25 14:17 /etc/alternatives/rlogin -> /usr/bin/slogin

lrwxrwxrwx 1 root root 3 2008-09-25 13:44 /usr/bin/slogin -> ssh

lrwxrwxrwx 1 root root 21 2007-08-30 13:18 /usr/bin/rsh -> /etc/alternatives/rsh

lrwxrwxrwx 1 root root 12 2007-08-30 13:18 /etc/alternatives/rsh -> /usr/bin/ssh

At least on this box at work.

Ok. Read, write executable. Ok.

Root. Got that.

Time stamp. Ok.

usr/bin/ got it, got it.

Losing me now. slogin. I'll have to google that, but ok. secure rsh or rlogin.

And... I'm lost.

Link to comment
Share on other sites

I was just trying to show that on that box both rlogin and rsh are symlinks to ssh, so no matter which one you execute you are actually running ssh.

That could explain why both behave the same.

Link to comment
Share on other sites

ichi, what distro is that? Cause that seems like 'around your elbow to get to your ass' symlinking going on there.

Not sure if they inherited from somewhere else or if it's a homemade recipe, but it comes from Canonical: ubuntu 8.04 upgraded from a 7.10 which was previously upgraded from 7.04.

Link to comment
Share on other sites

That is how a default install of ubuntu 8.04 is I have exactly the same

lrwxrwxrwx 1 root root 24 2008-02-24 02:51 /usr/bin/rlogin -> /etc/alternatives/rlogin

lrwxrwxrwx 1 root root 15 2008-04-26 07:16 /etc/alternatives/rlogin -> /usr/bin/slogin

lrwxrwxrwx 1 root root 3 2008-04-26 07:14 /usr/bin/slogin -> ssh

And its exactly the same on my webhosts server which is running

[homer]$ uname -a

Linux homer 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686 GNU/Linux

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.