LinuxQuestions.org
Review your favorite Linux distribution.
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 06-27-2002, 08:37 AM   #1
romagnol
LQ Newbie
 
Registered: May 2002
Posts: 3

Rep: Reputation: 0
Thumbs down rsh and rlogin service configuration


Hello,
i've tried to run the following service rsh, rlogin and rexec but:

1] With rlogin always is request the passwd for enter.

How can i set to rlogin without need of enter passwd ?

2] when i try remsh linux-machine ls from another machine,
i received the error of permission denied.

What i have to do for configure this services correctly.
My system is one REDHAT 7.1 on Intel.

I know that this kind of service are not so secure and that exist
the Openssh alternative but the CM tools (continuus) that need this service seems don't support SSH.

Regards
Luigi
 
Old 06-28-2002, 04:08 PM   #2
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Bad idea

You do it by putting the hostname in ~/.rhosts, but this is a _very_
bad idea. Or /etc/hosts.equiv. These files must have certain
ownership/permissions, see man ruserok.

If your app is really running rsh, instead of talking the protocol
directly, you could fool it into running ssh instead by something
like "PATH=~/bin:$PATH" and then "ln -s $(which ssh) ~/bin/rsh".

To use ssh.

1) on the machine you want to login from

2) become the user you'd like to be have login

su - <user>

3) run ssh-keygen, and don't give it a password

4) Copy ~<user>/.ssh/identity.pub to the machine
you want to login on. (Instead of identity.pub, you
may see id_rsa.pub or id_dsa.pub, depending on
what version of ssh you're using and what kind
of key is made. See below for version notes.)

5) Make the identity.pub owned by the user
you want to login as. (do this as root, or
just because you logged in as this user when
you copied it.)

chown <rem_user> identity.pub

6) Become the user you want to login as.

su - <rem_user>

7) Finish by allowing <user> to login as <rem_user>

mv identity.pub ~/.ssh/authorized_keys
chmod u=rw,g=,o= ~/.ssh/authorized_keys

8) gotcha's and tips

Now, <user> on the local machine can login as <rem_user> on the
remote machine with:

ssh <rem_user>@<remote_machine>

and otherwise do like rsh, run single commands, etc.

sshkeygen on the local machine can put the identity file somewhere else (so the local user dosen't have to have a home directory for instance). Then you'd use:

ssh -i <identityfilename> <rem_user>@r<emote_machine>

You can have problems with interoperability between different versions of ssh with different protocols. Use "-d" with ssh to find out what protocol it's trying to talk. Use "ssh-keygen -t rsa1" to talk with hosts that only support the ssh1 protocol.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 10:34 AM
rsh rlogin xterm and vncserver missing in mandrake10.1 nanjil Mandriva 0 07-18-2005 06:05 PM
Can't get rlogin, rsh to work in FC3 dangs Linux - Security 1 01-11-2005 12:45 PM
very slow rsh & rlogin on mandarke 9.2 yoko11 Mandriva 1 03-18-2004 08:31 AM
rsh and rlogin on Linux to HP-UX sammathew Linux - Networking 1 09-09-2003 05:17 PM


All times are GMT -5. The time now is 01:54 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 Google+: linuxquestions
Open Source Consulting | Domain Registration