Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
On an RHEL 5 server, I am unable to use rcp for one specific situation.
I moved this server yesterday from my test domain( "TD") to my production domain ("PD"). While in TD, I could rcp to and from anywhere, no problem. In PD, I can rcp to and from other machines in this domain. But I cannot rcp to or from one specific server in the TD (call it "pear"). I can ssh, scp, or ping to and from "pear", but cannot rcp. I CAN rcp from pear to and fromall other server in the PD. All the relevant IP addresses are in my .rhosts files. Can anyone tell me why rcp should fail only for this one server?
Or, is there an alternative way to transfer a file without having to enter a password? (We need to do it in an overnight script.)
I see the '-B' option on the scp man page, but when I try to use it I am told that I need a public key.
Probably the easiest and most secure way of doing this is to set up SSH host keys and then use SCP. You can use ssh-keygen to generate the keys (read the man page for all the options), and then put the client's public key into the server's ~/.ssh/authorized_keys files. Then passwordless SSH should work.
BTW, are you trying to rcp as root? Sometimes that won't work unless you edit pts/0, pts/1 etc. to the /etc/securetty file (this may only affect rsh though, not sure). One thing to try is putting the IP addresses in /etc/hosts.equiv instead of ~/.rhosts.