Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-22-2009, 12:33 PM   #1
Registered: Nov 2003
Posts: 79

Rep: Reputation: 15
Question Can't login with rsh


I'm having some trouble with rsh.

rsh is used as part of an Oracle startup script.
It keeps failing at that part of the script.

which rsh

If I do a single line command at the prompt, I get:

Login incorrect

But if I use ssh:

#ssh's password:
Last login: Wed Jul 22 09:55:58 2009 from

- worked.

chkconfig shows:

chkconfig --list |grep -i rsh
rsh: on

chkconfig --list |grep -i rlogin
rlogin: on

chkconfig --list |grep -i rexec
rexec: on

How do I need to get the rsh login to work?

Thanks a lot!
Old 07-22-2009, 01:45 PM   #2
LQ Newbie
Registered: Jul 2009
Posts: 6

Rep: Reputation: 1

You can use the command:

# rsh -v

So show more details regarding the connection.
Post the output of the command.

Old 07-22-2009, 02:25 PM   #3
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Dude, don't use rsh - it is very insecure and obsolete. Use ssh instead - it does everything that rsh does but with encryption. Using rsh and not ssh is the equivalent of fighint with a plastic spoon in you hand instead of a AK-47 with a bayonette.
Old 07-23-2009, 02:04 PM   #4
Registered: Nov 2003
Posts: 79

Original Poster
Rep: Reputation: 15
Got rsh working

Thanks. I worked with Oracle, and got it working.

The real issue was that the dbora script needed it
for autostart and shutdown on (re)booting.

But good point. Why not ssh?

Secret was to:

which rsh

mv /usr/kerberos/bin/rsh /usr/kerberos/bin/rsh.original
mv /usr/kerberos/bin/rcp /usr/kerberos/bin/rcp.original
mv /usr/kerberos/bin/rlogin /usr/kerberos/bin/rlogin.original

and use instead:

which rsh

edit the files:

cat /etc/hosts.allow
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.

cp /etc/hosts.allow /root/.rhosts
chmod 644 .rhosts

cat /root/.rhosts
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.

edit /etc/hosts.equiv

cat /etc/hosts.equiv
+bronze root root

cp /root/.rhosts /home/oracle11/.rhosts

cat /home/oracle11/.rhosts

change the ownership, and group.

And then I could login. What a lot of work.

rsh bronze
Last login: Thu Jul 23 12:01:45 from


login, rsh, ssh

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsh Chocolate Linux - Networking 9 10-24-2009 03:21 PM
Remote login with RSH not working atulyahigh Linux - Software 2 02-11-2008 04:05 AM
Rsh consty Red Hat 1 07-21-2006 05:57 PM
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 > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration