LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2009, 12:56 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
rsh vs ssh


Hi all...

We are planing to migrate our applications from Unix to Linux....

rhs was used in shell scripts, shell scripts poll the backup database which sits on different server, when we migrate from unix to linux both primary and backup databases sit on same server...

Is it necessary to change rhs to ssh in shell scripts ?

Can anyone please suggest ?

Thanks in advance...
 
Old 12-01-2009, 01:02 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
It is not mandatory but highly recommended. rsh does not use encryption for data transfer. ssh uses and hence more secure.
 
Old 12-01-2009, 01:25 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by linuxlover.chaitanya View Post
It is not mandatory but highly recommended. rsh does not use encryption for data transfer. ssh uses and hence more secure.
Dear Chaitanya,

Will there be much syntax differences between rsh and ssh ?
Also i did not find rshd daemon in fedora 9 ? rsh client is present...does rsh uses any other daemon ?
 
Old 12-01-2009, 01:30 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,720

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
I haven't used rsh for many years, but from memory, the ssh implements the same syntax as rsh (while adding extra features).

For example
Code:
ssh -l user host
will work like in rsh, but you can also use

Code:
ssh user@host
Cheers,

Evo2.
 
Old 12-01-2009, 02:41 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
No. As said much of the syntax should work in ssh as with rsh. But you should work with man pages to be sure.
 
Old 12-01-2009, 03:49 AM   #6
18Googol2
Member
 
Registered: Oct 2008
Distribution: FreeBSD, RedHat, Centos, Solaris, AIX
Posts: 34

Rep: Reputation: 17
Which backup app is it? I previously did the same thing, then everything went fine.
 
Old 12-01-2009, 03:53 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,034

Rep: Reputation: 65
Quote:
Originally Posted by vinaytp View Post
Dear Chaitanya,

Will there be much syntax differences between rsh and ssh ?
Also i did not find rshd daemon in fedora 9 ? rsh client is present...does rsh uses any other daemon ?
man ssh and google will do all.
 
Old 12-01-2009, 07:01 AM   #8
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Just a further comment on rsh vs. ssh -- even if I were not changing OS's, I would change from rsh to ssh. rsh is not secure for many reasons. It basically means that if anyone gets into one of your machines, they've got them all.

I use Amanda for backup. One option with it is to use ssh authentication and connections between backup server and clients. You can set up public key authentication, and you can restrict the keys. So, for example, the backup user on the server has a public key which is distributed to the clients. The client's backup user implements those keys with restrictions that allow them to be used only with one particular command (for backing up) and blocking portforwarding, x forwarding, etc. When I set something up like that, I typically reference http://sial.org/howto/openssh/publickey-auth/. The man page for sshd(8), `man -s 8 sshd`, also has details under Authorized_keys File Format. You end up with the ease of use of rsh, automatic login without passwords for automatic processes like backup, but with secure restrictions so that if someone were to break into one machine they wouldn't have access or free reign on any other machine.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
timeout option in ssh or rsh?? kdelover Linux - Newbie 10 01-11-2010 12:09 AM
Unable to rsh or ssh- connection refused mixxalot Linux - Networking 3 11-24-2007 09:45 PM
rsh / ssh woes kevingpo Fedora 11 04-26-2007 06:46 AM
what is rsh and ssh ztdep Linux - Networking 2 07-17-2005 05:28 AM
rsh/ssh from Linux to Solaris sttaft Solaris / OpenSolaris 7 06-16-2004 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration