Jump to content

rlogin/rsh help


eharvill
 Share

Recommended Posts

Can't seem to get either of these to work on Mandrake 7.2 or 8.2 on two different PCs. I installed the rsh-server and rsh-client RPMs. I've added entries to .rhosts, /etc/hosts.equiv, /etc/hosts.allow and uncommented the daemons in /etc/inetd.conf. Everytime I attempt an rsh or rlogin I get a connection timed out. I've even tried to rlogin into the server I am currently logged into. Anyone have any idea about what I might be missing? I've done this successfully about 2 million times on HP-UX servers, but I can't think of anything else I might need to enable this under Linux. Thanks...

Link to comment
Share on other sites

That actually is an excellent idea that had not occurred to me. My ultimate goal is to use rsync to keep log files synchronized and I was under the impression I could only do this with rsh. After further reading it appears I can use ssh with rysnc. Unfortunately, I still have to enter a password when using ssh. I have updated the .shosts and shosts.equiv file to no avail. I am not very familiar with ssh -- do I need to update anything else? Any other suggestions would be appreciated. Thanks...

Link to comment
Share on other sites

All you need to know to use ssh:

 

http://www.mandrakeuser.org/docs/secure/index.html#s

 

Here is a little howto (I don't remember who wrote it, but it is from the old board. I think I've backuped it to this one, but I'm not sure):

 

Using ssh w/o passwords:

Generate the keys only if they do not exist? look in the /home/<user>/.ssh first.

 

ssh-keygen -f ~/.ssh/identity -t rsa1 -P ""

ssh-keygen -f ~/.ssh/id_dsa -t dsa -P ""

ssh-keygen -f ~/.ssh/id_rsa -t rsa -P ""

cat ~/.ssh/id_dsa.pub ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys2

 

On the server you may need to mkdir -p ~/.ssh

On server chmod 700 ~/.ssh

Now copy the local /home/<user>/.ssh/identity.pub into the server /home/<user>/.ssh/authorized_keys

On server chmod 600 ~/.ssh/authorized_keys

Copy the combined keys in local /home/<user>/.ssh/authorized_keys2 into the server /home/<user>/.ssh/authorized_keys2

On server chmod 600 ~/.ssh/authorized_keys2

On local rm ~/.ssh/authorized_keys2

 

Now try to ssh form the command line, it should not ask for a password, and now all programs will work with ssh

 

 

HTH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...