Bug 1709 - Connection refused occurs under OpenSolaris
Summary: Connection refused occurs under OpenSolaris
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.3p1
Hardware: amd64 Solaris
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 08:27 AEDT by mvolaski
Modified: 2010-04-16 15:50 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvolaski 2010-01-31 08:27:53 AEDT
The following config 
Protocol 2
Port 22
ListenAddress ::
AllowTcpForwarding no
GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
PrintMotd no
KeepAlive yes
LogLevel info
HostKey /etc/ssh/ssh_host_rsa_key
ServerKeyBits 768
KeyRegenerationInterval 3600
StrictModes yes
MaxAuthTries    6
#MaxAuthTriesLog        3
PermitEmptyPasswords no
PasswordAuthentication yes
PermitRootLogin yes
Subsystem       sftp    /usr/lib/ssh/sftp-server
IgnoreRhosts no
RhostsRSAAuthentication no
IgnoreUserKnownHosts yes
RSAAuthentication no
PubkeyAuthentication yes
HostbasedAuthentication yes

results in Connection refused on trying to connect.

server
debug1: sshd version OpenSSH_5.3p1
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: rexec_argv[0]='/config/utilities/sshd/sshd'
debug1: rexec_argv[1]='-ddd'
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 22 on ::.
Server listening on :: port 22.

client
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to thecratedoor [192.168.1.39] port 22.
debug1: connect to address 192.168.1.39 port 22: Connection refused

The sshd provided with OpenSolaris does not have this problem when using the identical configuration.
Comment 1 mvolaski 2010-01-31 08:30:18 AEDT
OpenSolaris is snv_130. Its ssh is sshd version Sun_SSH_1.5.
Comment 2 Damien Miller 2010-01-31 13:16:53 AEDT
(In reply to comment #0)
> ListenAddress ::

This is your problem. You have instructed sshd to listen on the IPv6 wildcard address only. Add:

ListenAddress 0.0.0.0

or comment out your ListenAddress entirely, restart sshd and it should work.
Comment 3 Damien Miller 2010-04-16 15:50:54 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1