LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-11-2011, 01:54 PM   #1
levencp
LQ Newbie
 
Registered: Feb 2011
Location: Geneva, NY
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Question Connection refused


I am in the process of setting up a remote printer on a Red Hat server from an AIX server and cannot connect to the queue. I have gone so far as to disable the firewall - still no good. It also refuses a telnet from the AIX host even when the firewall is disabled.
telnet clt0ds33
Trying...
telnet: connect: A remote host refused an attempted connect operation.

SSH does work however.

I am new to linux and I am sure this is a simple security issue. Thanks in advance.
 
Old 02-11-2011, 01:59 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Do you have telnet even running?
 
Old 02-11-2011, 02:08 PM   #3
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Hrmm...

I'd sniff the traffic to see what's going on. And maybe use nmap to scan the printer to see what services are running.

Last edited by unixfool; 02-11-2011 at 02:10 PM.
 
Old 02-11-2011, 02:15 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by unixfool View Post
Hrmm...

I'd sniff the traffic to see what's going on. And maybe use nmap to scan the printer to see what services are running.
And at least to see what ports are accepting connections...
 
Old 02-12-2011, 08:57 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
telnet

Why would you expect telnet to work?
The use of telnet has been depreciated, and it is not installed or enabled by default in any current version of Linux.
On another topic: what does telnet have to do with setting up a printer?
I have printed from AIX queues to Linux queues, (and the reverse case) without problems. Can you provide more information?
 
Old 02-13-2011, 03:44 AM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by levencp View Post
telnet clt0ds33
Trying...
telnet: connect: A remote host refused an attempted connect operation.
Did you use a plain telnet, or did you also specify the port 515 during your test?
 
Old 02-13-2011, 03:46 AM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by wpeckham View Post
Why would you expect telnet to work?
The use of telnet has been depreciated, and it is not installed or enabled by default in any current version of Linux.
On another topic: what does telnet have to do with setting up a printer?
I have printed from AIX queues to Linux queues, (and the reverse case) without problems. Can you provide more information?
Telnet can be used in certain situation as a debugging tool. In this case: can I connect to port 515 of printer server at all?
 
Old 02-14-2011, 10:39 AM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
telnet for printer

I see, you did not EXPECT a telnet connection, only that telnet would show that the port was active.

It sounds as if you may need to check:
1. are there software or hardware firewalls between? Something may be blocking.
2. is the printer service LISTENING? Cups can be configured to listen for IPP but not for traditional LPR (different ports), and all print server can be set to listen ONLY for local jobs (from localhost) and not listen for connections from the network.

Please let us know what you find!

Last edited by wpeckham; 02-14-2011 at 10:41 AM.
 
Old 02-18-2011, 10:24 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
telnet <hostname> <port>

If you don't specify the port, it's going to use the default telnet port and if that's not running, will give you connection refused or hang on you.

If the service you have running is listening on the port specified in your telnet, it should connect. If it doesn't, either there's something blocking it or the service isn't running.
 
1 members found this post helpful.
Old 02-28-2011, 07:26 AM   #10
levencp
LQ Newbie
 
Registered: Feb 2011
Location: Geneva, NY
Distribution: Redhat
Posts: 2

Original Poster
Rep: Reputation: 0
None of the suggestions helped but the answer was the deamon cups_lprd was not running.
 
Old 02-28-2011, 10:08 AM   #11
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Thumbs down

Actually, most of those suggestions were asking you to use telnet/nmap/tcpdump to test to see if that service was running.

What took you so long to determine this and why are you saying that none of the suggestions helped?

Some of the suggestions that steered you in the right direction:

Quote:
Originally Posted by corp769 View Post
And at least to see what ports are accepting connections...
Quote:
Originally Posted by Reuti View Post
Did you use a plain telnet, or did you also specify the port 515 during your test?
Quote:
Originally Posted by Reuti View Post
Telnet can be used in certain situation as a debugging tool. In this case: can I connect to port 515 of printer server at all?
Quote:
Originally Posted by wpeckham View Post
I see, you did not EXPECT a telnet connection, only that telnet would show that the port was active.

It sounds as if you may need to check:
1. are there software or hardware firewalls between? Something may be blocking.
2. is the printer service LISTENING? Cups can be configured to listen for IPP but not for traditional LPR (different ports), and all print server can be set to listen ONLY for local jobs (from localhost) and not listen for connections from the network.

Please let us know what you find!
Quote:
Originally Posted by trickykid View Post
telnet <hostname> <port>

If you don't specify the port, it's going to use the default telnet port and if that's not running, will give you connection refused or hang on you.

If the service you have running is listening on the port specified in your telnet, it should connect. If it doesn't, either there's something blocking it or the service isn't running.
So, you had 5 answers that were pretty much all spot-on and you say that none of the solutions were correct. The last one was definitely correct. Then it took you 10 days to come back and say "none of the suggestions helped".

Last edited by unixfool; 02-28-2011 at 10:10 AM.
 
  


Reply



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
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 08:34 PM
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
eth0 going down (connection reset by peer, then connection refused) Astarath Slackware 1 09-05-2007 05:14 AM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:14 PM.

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