Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-11-2011, 01:54 PM
|
#1
|
LQ Newbie
Registered: Feb 2011
Location: Geneva, NY
Distribution: Redhat
Posts: 2
Rep:
|
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.
|
|
|
02-11-2011, 01:59 PM
|
#2
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Do you have telnet even running?
|
|
|
02-11-2011, 02:08 PM
|
#3
|
Member
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Rep: 
|
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.
|
|
|
02-11-2011, 02:15 PM
|
#4
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Quote:
Originally Posted by unixfool
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...
|
|
|
02-12-2011, 08:57 PM
|
#5
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,175
|
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?
|
|
|
02-13-2011, 03:44 AM
|
#6
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
Quote:
Originally Posted by levencp
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?
|
|
|
02-13-2011, 03:46 AM
|
#7
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
Quote:
Originally Posted by wpeckham
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?
|
|
|
02-14-2011, 10:39 AM
|
#8
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,175
|
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.
|
|
|
02-18-2011, 10:24 AM
|
#9
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
02-28-2011, 07:26 AM
|
#10
|
LQ Newbie
Registered: Feb 2011
Location: Geneva, NY
Distribution: Redhat
Posts: 2
Original Poster
Rep:
|
None of the suggestions helped but the answer was the deamon cups_lprd was not running.
|
|
|
02-28-2011, 10:08 AM
|
#11
|
Member
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Rep: 
|
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
And at least to see what ports are accepting connections...
|
Quote:
Originally Posted by Reuti
Did you use a plain telnet, or did you also specify the port 515 during your test?
|
Quote:
Originally Posted by Reuti
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
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
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.
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|