Ougoing telnet: Unable to connect to remote host: Connection refused
Posted
by
brendan
on Ask Ubuntu
See other posts from Ask Ubuntu
or by brendan
Published on 2012-07-08T01:57:37Z
Indexed on
2012/07/08
3:22 UTC
Read the original article
Hit count: 510
I am trying to telnet from Ubuntu server (running Maverick) on ec2 to another machine I have set up not on ec2 - we'll call it "server-x".
The two machines are connected via vpn. I can ping from the ec2 machine to server-x no problem. On another machine also on the vpn but also not on ec2 I can telnet to server-x without issue so it is accepting incoming connections on that port.
But when I run telnet from the ubuntu instance to server-x I get :
ubuntu@ip-10-111-11-11:~$ telnet 5.1.1.1 9143
Trying 5.1.1.1...
telnet: Unable to connect to remote host: Connection refused
Other telnets work like this:
ubuntu@ip-10-111-11-11:~$ telnet imap.gmail.com 993
Trying 173.194.76.108...
Connected to gmail-imap.l.google.com.
Escape character is '^]'.
I have disabled ufw on the ubuntu machine. Is there anything else that can be blocking this outgoing connection? I tried adding the outgoing port to iptables but I'm not certain I'm doing that right.
© Ask Ubuntu or respective owner