LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 02-27-2007, 04:40 AM   #1
Chocolate
LQ Newbie
 
Registered: Nov 2006
Posts: 23

Rep: Reputation: 15
Rsh


hello everyone,

actually I have a question if you don't mind & please ..

Is rsh comes already with the linux as ssh or we should install it???


thanks in advances.
 
Old 02-27-2007, 09:39 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 10,003

Rep: Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189
SSH and RSH are two separate things.

SSH comes with most Linux distros. RSH is often an option, but doesn't get installed. While you can add it, it's better to use something more secure, such as SSH.

As to whether or not you should install it, that depends on what you're trying to do.
 
Old 02-28-2007, 05:42 AM   #3
Chocolate
LQ Newbie
 
Registered: Nov 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne
SSH and RSH are two separate things.

SSH comes with most Linux distros. RSH is often an option, but doesn't get installed. While you can add it, it's better to use something more secure, such as SSH.

As to whether or not you should install it, that depends on what you're trying to do.
thanks alot for your answer.
could u plz tell me from where can i add RSH? i already searched however i prefer to ask first.

i tried SSH before, however i can't let it worked whithout a passphrase. if u know this point, i will be very thankful if u can help.

thanks alot.
 
Old 02-28-2007, 08:24 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 55
I have a page Here which shows howto use SSH with a public-private key pair, ie with no password.

Basically, you need to generate a key using ssh-keygen and then tell the remote computer what the public key is. Then login with your private key.

RSH is not a good idea - I think it uses plain-text rather than encrypted.

--Ian
 
Old 03-01-2007, 02:44 AM   #5
Chocolate
LQ Newbie
 
Registered: Nov 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IBall
I have a page Here which shows howto use SSH with a public-private key pair, ie with no password.

Basically, you need to generate a key using ssh-keygen and then tell the remote computer what the public key is. Then login with your private key.

RSH is not a good idea - I think it uses plain-text rather than encrypted.

--Ian
thanks again.

should i have a client server in order to use SSH or RSH??


thanks in advance.
 
Old 03-01-2007, 03:31 AM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 55
How do you mean?

You will need to have an SSH server installed and running on the remote machine, and an SSH client installed on the local machine. Howto install these is dependent on your distro - if you use Debian then
Code:
aptitude install ssh-server
on the remote machine and
Code:
aptitude install ssh-client
on the local machine.

--Ian
 
Old 03-20-2007, 04:54 PM   #7
jbeiter
Member
 
Registered: Jul 2004
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by TB0ne
SSH and RSH are two separate things.

SSH comes with most Linux distros. RSH is often an option, but doesn't get installed. While you can add it, it's better to use something more secure, such as SSH.

As to whether or not you should install it, that depends on what you're trying to do.
I don't know if they do this on other distributions but on Ubuntu they linked rsh to ssh... a bit obnoxious if you ask me.
 
Old 03-20-2007, 07:14 PM   #8
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 55
Quote:
Originally Posted by jbeiter
I don't know if they do this on other distributions but on Ubuntu they linked rsh to ssh... a bit obnoxious if you ask me.
You can change this of course.

However, there is absolutely no reason why you need to run a telnet or rsh server - ssh is much better.

You may need ftp - but people really should look seriously at sftp.

Obviously, the clients are still needed, as the remote machine may only accept rsh, etc.

--Ian
 
Old 10-23-2009, 05:11 PM   #9
DaveinCo
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Cool rsh on Linux

With regards to all who promote the valid advantages of ssh over rsh, I offer a simple answer as to why you would continue to use rsh, especially as root - Because you have to.

Our environment includes about 1200 systems in our immediate group, 2300 at the site, over 5000 world-wide, with Linux, HPUX (back to 7.x), MPE, Solaris, AIX, OFS1, Ultrix, several lesser Unixs, not to mention Microsoft stuff going back to DOS 3.1, we don't always get to exercise denial. All this is still in operation because upgrading a single tool can cost $millionsUSD.

So to use rsh as root on Ubuntu, in addition to
aptitude install rsh-client rsh-server
and adjusting the /etc/xinedt.d/* and /etc/pam.d/* as others have documented. You need to insert pty entries in your /etc/securetty file.
pty/2
pty/3
pty/4
etc.

Hope this helps,
Dave
 
Old 10-24-2009, 03:21 PM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 10,003

Rep: Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189
Quote:
Originally Posted by DaveinCo View Post
With regards to all who promote the valid advantages of ssh over rsh, I offer a simple answer as to why you would continue to use rsh, especially as root - Because you have to.

Our environment includes about 1200 systems in our immediate group, 2300 at the site, over 5000 world-wide, with Linux, HPUX (back to 7.x), MPE, Solaris, AIX, OFS1, Ultrix, several lesser Unixs, not to mention Microsoft stuff going back to DOS 3.1, we don't always get to exercise denial. All this is still in operation because upgrading a single tool can cost $millionsUSD.

So to use rsh as root on Ubuntu, in addition to
aptitude install rsh-client rsh-server
and adjusting the /etc/xinedt.d/* and /etc/pam.d/* as others have documented. You need to insert pty entries in your /etc/securetty file.
pty/2
pty/3
pty/4
etc.

Hope this helps,
Dave
That's fine..but this is a two-year old thread. We realize there are times when you "have to", but it's so insecure as normal, it's hard to recommend in this day and age. You can (and should, as a good systems admin), exercise denial, because it's YOU that is ultimately responsible...not the users or management that 'make you' use something insecure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About rsh dinesh Linux - Networking 2 12-07-2006 10:00 PM
Rsh consty Red Hat 1 07-21-2006 05:57 PM
help in rsh Fuzia Linux - Networking 1 04-26-2006 07:59 AM
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
please help with rsh slice4e Linux - General 5 08-19-2003 12:49 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration