SSH: Connection refused

Asked by RedHeninger

Hi guys.

$ bzr branch lp:inkscape
ssh: connect to host launchpad.net port 22: Connection refused
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
ssh: connect to host launchpad.net port 22: Connection refused
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

ssh bazaar.launchpad.net -T
ssh: connect to host launchpad.net port 22: Connection refused

$ ssh -v bazaar.launchpad.net
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/x/.ssh/config
debug1: /home/x/.ssh/config line 6: Applying options for bazaar.launchpad.net
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /home/x/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to launchpad.net [91.189.89.222] port 22.
debug1: connect to address 91.189.89.222 port 22: Connection refused
debug1: Connecting to launchpad.net [91.189.89.223] port 22.
debug1: connect to address 91.189.89.223 port 22: Connection refused
ssh: connect to host launchpad.net port 22: Connection refused

nmap bazaar.launchpad.net

Starting Nmap 6.40 ( http://nmap.org ) at 2015-05-28 17:39 VET
Nmap scan report for bazaar.launchpad.net (91.189.95.84)
Host is up (0.15s latency).
rDNS record for 91.189.95.84: taotie.canonical.com
Not shown: 997 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https

Nmap done: 1 IP address (1 host up) scanned in 9.35 seconds

I can connect to other hosts, I can github, but not bazaar.launchpad.net. What am I missing?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
William Grant
Solved:
Last query:
Last reply:
Revision history for this message
Best William Grant (wgrant) said :
#1

Your ~/.ssh/config is broken. To quote your terminal snippet:

"""
$ ssh -v bazaar.launchpad.net
[...]
 debug1: Connecting to launchpad.net [91.189.89.222] port 22.
"""

Why is your ssh talking to launchpad.net when asked to connect to bazaar.launchpad.net?

Revision history for this message
RedHeninger (arcademashup) said :
#2

Thanks William Grant, that solved my question.