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!
Notices
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.
[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
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
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.
Thx btmiller & matthewg42 for ur answers .
Now I m using 'scp' command for transferring one file from a linux server to another remotely . It works fine like following :
But here I want a situation where 'scp' comand does not prompt for root password . I want passwordless 'scp' command , is it possible ?
Plz help me again ... ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.