- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: remote copy of file in linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 01:50 PM
02-09-2006 01:50 PM
This is my command
rcp jupiter1:/r5/oracle/text1 atlanta:/u01/oracle/text1
send me the followibg error
atlanta:connection refused
in the hosts.allow I have added
jupiter1
atlanta
The same for the other node atlanta.
In the /etc/hosts I also have added the Ip address of both nodes such for jupiter1 and atlanta.
Also in the .rhosts I have added to jupiter and atlanta nodes in both machines.
Whitch could be my error?
Thank you
W,S
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 05:18 PM
02-09-2006 05:18 PM
Re: remote copy of file in linux
I recommend use scp, in case rcp have to be fulfiled following conditions still:
- started telnet server
- enabled rsh and rlogin (in /etc/xinetd.d/rsh and /etc/xinetd.d/rlogin: disable = no)
- if root user use to rcp this has to be unblocked login by telnet on root (move /etc/securetty to /etc/securetty.org).
All this things lower security of system, no saying about file .rhosts
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 06:54 PM
02-09-2006 06:54 PM
Re: remote copy of file in linux
rcp is not configured by default on Linux. scp is a far more secure and superior item.
If you must use rcp:
vi the r protocol item in /etc/xinetd.d/
Change disable = yes
to disable = no
service xinetd restart
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 08:39 PM
02-09-2006 08:39 PM
Re: remote copy of file in linux
In addtion to the above also try specifying a user along with the command.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 10:52 PM
02-09-2006 10:52 PM
Re: remote copy of file in linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 03:50 AM
02-10-2006 03:50 AM
Solutionscp
You will probably have to enter the passwd if you have not setup the authorized keys. But this will prompt you at the beginning of the scp process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2006 11:31 PM
02-12-2006 11:31 PM
Re: remote copy of file in linux
Your main mistake is to use hosts.allow and hosts.deny in order to set permissions for rsh/rcp/rlogin.
/etc/hosts.allow and /etc/hosts.deny are used for tcpwrapers only.
The file you are looking for is : /etc/hosts.equiv in which you must add your two hostnames jupiter and atlanta on the two servers. ("jupiter" on atlanta:/etc/hosts.equiv and "atlanta" on jupiter:/etc/hosts.equiv are sufficients but it's really simplest to have the same file on the two servers.)
By having this configuration, any normal unix user are authorized to rsh or rcp from ont to the other.
/etc/hosts.equiv is not working for root connections.
For these, as root you must create a file named $HOME/.rhosts containing
jupiter
atlanta
on the two machines.
By the way, I agree with all others : use SSH instead of rlogin suite (rsh and rcp) 'cause it is much more secure and up to date.
Regards,
Lionel