Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 09-13-2011, 12:16 PM   #1
LQ Newbie
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Rep: Reputation: Disabled
Question rcp: Unknown Host

I'm new to Red Hat but.. Installed rsh package. When I execute "rcp user@ FILE" I'm told " Unknown host", but scp works just fine. Do I need an '.rhosts' file on the local and/or remote host?
Thanks in advance.
remote host is an HP-UX 11.i box

Tried rcp from Red Hat box to Red Hat box and get a "Connection refused" error. Why would the connection be refused? I'm rcp'ing to a HA Cluster that has a single 'floating' IP address. I don't know if this makes any difference, but thought I'd mention it.
Thanks again!

Last edited by BradMarks; 09-13-2011 at 12:32 PM.
Old 09-13-2011, 04:20 PM   #2
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, Brad,

"Connection refused" usually means you tried to connect to a hostort combination where nothing is actually listening to the specified port. Whenever you see "connection refused," the first thing to research is whether or not what you're trying to do has a "server side" component (frequently called a "daemon"), and is that component actually running?

I don't know a great deal about rsh and rcp, but a quick Google search on "rshd daemon" reveals that a daemon exists. You probably need to make sure the daemon is installed and running on your server and try to make a connection, again.

Good luck!
Old 09-13-2011, 04:50 PM   #3
LQ Newbie
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
Unfortunately, there is not rshd daemon on Red Hat6. I'm wondering if there needs to be an entry in /etc/services.
Old 09-14-2011, 01:04 AM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
That sort of thing on RHEL would be deprecated, but there prob is a pkg and it would prob install it as a xinetd service.
I strongly recommend ssh/scp/sftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
trying normal rcp (/usr/bin/rcp) Permission denied. Martin Peter Clarke Linux - Server 5 12-21-2010 10:42 AM
rcp -- port 544: No route to host jchambers Linux - Networking 1 08-26-2007 02:53 AM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration