eharvill Posted January 29, 2003 Report Share Posted January 29, 2003 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... Quote Link to comment Share on other sites More sharing options...
aru Posted January 29, 2003 Report Share Posted January 29, 2003 do you really want to do that? Why not using ssh instead, it has a lot of improvements over rsh, and the protocol used doesn't have security issues. Quote Link to comment Share on other sites More sharing options...
eharvill Posted January 29, 2003 Author Report Share Posted January 29, 2003 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... Quote Link to comment Share on other sites More sharing options...
aru Posted January 30, 2003 Report Share Posted January 30, 2003 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 Quote Link to comment Share on other sites More sharing options...
eharvill Posted January 30, 2003 Author Report Share Posted January 30, 2003 Thanks Aru, it worked perfectly!!! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.