- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: rcp to localhost
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-25-2002 12:34 PM
02-25-2002 12:34 PM
I am really new to linux so this may be a dumb question. Well I am testing some perl scripts and all I want to do is rcp to myself (localhost). But I keep getting connection refused.
I am running redhat 7.2 and logged on as root. I did a workstation installation. Oh I also read the rcp top read solution but it didn't help.
Is there a flag somewhere I have to turn to activate rcp?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 12:53 PM
02-25-2002 12:53 PM
Re: rcp to localhost
If not, you probably have to download rsh-server-
It doesn't get installed by default for most configs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:18 PM
02-25-2002 01:18 PM
Re: rcp to localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 02:10 PM
02-25-2002 02:10 PM
Solution/root/.rhosts:
This file says what machines can access your machine without prompting for a password. In this scenario, it should contain 'localhost'. If that doesn't work, you'll need to check /var/log/messages to see where the system thinks the connection is being initiated from.
/etc/pam.d/rsh:
This file will say whether the 'root' user can 'rsh' and do such commands from pseudo tty's. Comment out the line "/lib/security/pam_securetty.so". WARNING: This does open your machine up somewhat. If you can avoid doing 'r' commands as 'root', I would.
"chkconfig --list rsh"
This command should return 'rsh on'. If not, then 'rsh' commands won't work. If you need to change it, these two commands must be executed:
chkconfig rsh on
/etc/rc.d/init.d/xinetd restart
This will enable 'rsh', and restart the 'xinetd' process (which is what actually answers the connection request).
Hope this gives you some help on where to head.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 06:40 PM
02-27-2002 06:40 PM
Re: rcp to localhost
Also check /etc/xinetd.d/rsh
by default, even if installed, the service is disabled. Enable by replacing
" disable = yes"
with
" disable = no"
and then restart xinetd.
Or better yet, get openssh and install it. Remote shell access that's secure. What a concept.
hth
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 07:56 PM
02-27-2002 07:56 PM
Re: rcp to localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 06:30 AM
02-28-2002 06:30 AM
Re: rcp to localhost
You will probably want to add this:
ALL: localhost
ALL: 127.0.0.1
to your /etc/hosts.allow file. By default, most stuff is denied, I believe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 11:16 AM
02-28-2002 11:16 AM
Re: rcp to localhost
Its hard to find good help online. Thanks again.
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 02:31 PM
02-28-2002 02:31 PM
Re: rcp to localhost
You need to give the people who helped you some points. Especially if you ever need help again. We can look at your name and see if you give points or not and a lot of people who might know the answer will just skip on to the next post rather than waste time replying. It may seem silly but the recognition you get from earning points really motivates you to provide the correct answer.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 02:36 PM
02-28-2002 02:36 PM