LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-22-2009, 12:33 PM   #1
Darrell22
Member
 
Registered: Nov 2003
Posts: 83

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


Hello,

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
/usr/bin/rsh


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

#rsh bronze.gateway.2wire.net
Password:
Password:
Login incorrect



But if I use ssh:

#ssh bronze.gateway.2wire.net
root@bronze.gateway.2wire.net's password:
Last login: Wed Jul 22 09:55:58 2009 from bronze.gateway.2wire.net

- 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
lcoronato
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 1
Hi,

You can use the command:

# rsh -v bronze.gateway.2wire.net


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

Leandro
 
Old 07-22-2009, 02:25 PM   #3
ramram29
Member
 
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
Darrell22
Member
 
Registered: Nov 2003
Posts: 83

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
/usr/kerberos/bin/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
/usr/bin/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.
#
bronze
bronze.gateway.2wire.net


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.
#
bronze
bronze.gateway.2wire.net



edit /etc/hosts.equiv

cat /etc/hosts.equiv
+bronze root
+bronze.gateway.2wire.net root



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

cat /home/oracle11/.rhosts
bronze
bronze.gateway.2wire.net

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 bronze.gateway.2wire.net
 
  


Reply

Tags
login, rsh, ssh



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 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