Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For non-FreeBSD people, what do the r commands do?


"r" stands for "remote". They predated ssh and were how things were done remotely in the (distant) past. You can pretty much just replace the "r" with an "s" and that's what they did, only without the "secure" provided by ssh/scp/etc.

They were/are not exclusive to FreeBSD.


Only in computers is the distant past 25 years ago...


25 years ago I was using an Amiga 3000 with a 25 MHz 68030 CPU and 8 MB of RAM. It feels pretty distant to me. A lot has changed in that time.

And, OpenSSH isn't even 20 years old, so it's actually not been that long. SSH was 1995, that's probably the beginning of the ssh epoch and the beginning of the end of the rsh age.


25 years of longer than some of us have been alive;)


Despite using FreeBSD I had the same question as I had never really touched them. From reading up on it, it looks like they're old remote versions of various commands for interacting with a server/mainframe from a thin client. For example, rcp copies to a remote host, rlogin starts a terminal session on a remote host, etc.

I could well be missing nuance though. My experience with FreeBSD is using it for my server for ZFS' gloriousness.


Think of them as wildly insecure versions of SCP / SSH. Trusted LAN only, trusted users only, etc.

https://en.wikipedia.org/wiki/Rlogin has more background information.


They're not exactly insecure, they're just used for different things, like networks that are already secure. You can secure existing networks pretty well against things like MitM, and then it doesn't matter if you use rsh or ssh. (part of why so many routers still use telnet is it's supposed to only be enabled on management interfaces)

Quite a few years ago I helped build the public terminal cluster for HOPE. That year we used a token ring network for all of the hosts. Nobody anywhere near the conference had any token ring gear whatsoever. It was impossible to break into the network, so you had to use existing nodes. And the nodes' adapters had their promiscuous modes disabled in hardware. That plus a hardened terminal server and an extremely limited thin client meant nobody could successfully hack the network. You could have used telnet all day and been totally secure.

Though in conference environments, the network is not the biggest risk for targeted attacks. Carefully watching your target enter their password is simpler and more effective.


> They're not exactly insecure, they're just used for different things, like networks that are already secure.

There is no such thing.

I'd be pedantic and rephrase this to - used for networks which you trust.


I think the engineers setting up red/black networks for the military might disagree with you, but even in the enterprise 802.1X can result in a secure local network.

I would say trust is a result of the operation of the network, as you may need to do something to establish it. And in this vein you're right, "networks you already trust" definitely would have been better wording.


No. You can't use rlogin on a 802.1X network or a red/black network. Passwords are transmitted in plain text, which means any other terminal on the network can sniff the password.


Red networks are intended for classified plaintext, by definition...


Passwords aren't classified plain text, they are authentication details and should be handled differently.


Not at all. They are probably most used today in Kerberos environments, where they are both encrypted and secure.


They've been out of date for nearly two decades now.


Take "ssh" and replace the "s" for "secure" with "r" for "remote".


They are basically like http is to https. Unauthenticated, clear-text remote login, copy, etc.


Remote. They've all basically been superseded by ssh-based tools.


Basically unencrypted straight remote connections, the predecessor of telnet, scp, etc. I always wondered back when FreeBSD was main daily why it was still there.


What? How could it predate telnet? That was RFC 15 from freakin' 1969 and before that, there isn't really anything. But even if you consider RFC 854 to be telnet, well that's https://tools.ietf.org/html/rfc854 May 1983, rlogin was released in 4.2BSD, that's July 1983 http://www.informatica.co.cr/bsd/research/acrobat/830721.pdf


Well they may not have technically predated then but what I meant is that as far as I know for a while r(etc) was used and then was generally replaced in actual usage by telnet, etc.


It was the other way around. Rsh and rlogin appeared well after telnet, and displaced some telnet use because they were able to do password-free connections via .rhosts


Oh yes that file. The good old days when you would use social engineering on irc to have yourself added to your victim's .rhosts




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: