rcp command from one linux to another linux server
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.
[root@localhost test]# ping 192.168.10.1 //From Linux 1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=0.324 ms
64 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=0.251 ms
--- 192.168.10.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.251/0.287/0.324/0.040 ms
[root@server ~]# ping 192.168.10.2 //from Linux 2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
64 bytes from 192.168.10.2: icmp_seq=0 ttl=64 time=0.370 ms
64 bytes from 192.168.10.2: icmp_seq=1 ttl=64 time=0.317 ms
64 bytes from 192.168.10.2: icmp_seq=2 ttl=64 time=0.284 ms
Rcp is not installed or enabled by default, as it's pretty insecure. Unless you're on a highly trusted local network and need rcp for some particular reason, you should use scp (secure copy) instead. The semantics are the same as rcp.
Further to that btmiller said, to be able to scp to a server, that server must be running an ssh server. On Ubuntu & Debian systems, you need to install the openssh-server package. Not sue about the package name on other distros.
It is not typical for sshd to be running in most default configurations.
sshd and related programs provide an effective, secure replacement for the r-tools - rcp, rexec, rsh - and should be used in preference to them in most situations.