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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-01-2009, 12:56 AM
|
#1
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Rep:
|
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...
|
|
|
12-01-2009, 01:02 AM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
It is not mandatory but highly recommended. rsh does not use encryption for data transfer. ssh uses and hence more secure.
|
|
|
12-01-2009, 01:25 AM
|
#3
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Original Poster
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
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 ?
|
|
|
12-01-2009, 01:30 AM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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
will work like in rsh, but you can also use
Cheers,
Evo2.
|
|
|
12-01-2009, 02:41 AM
|
#5
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
No. As said much of the syntax should work in ssh as with rsh. But you should work with man pages to be sure.
|
|
|
12-01-2009, 03:49 AM
|
#6
|
Member
Registered: Oct 2008
Distribution: FreeBSD, RedHat, Centos, Solaris, AIX
Posts: 34
Rep:
|
Which backup app is it? I previously did the same thing, then everything went fine.
|
|
|
12-01-2009, 03:53 AM
|
#7
|
Senior Member
Registered: Sep 2007
Posts: 1,047
Rep:
|
Quote:
Originally Posted by vinaytp
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.
|
|
|
12-01-2009, 07:01 AM
|
#8
|
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 05:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|