Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Stefan G. Weichinger
Am 18.09.2013 11:53, schrieb Stefan G. Weichinger:

 Rebuilt openssh already.
 
 Maybe I should downgrade for testing ...
 
 The problematic box: net-misc/openssh-6.2_p2-r4
 The working box: net-misc/openssh-5.9_p1-r4

Yep. Downgrading works for me.




Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Joe Nyland

On 18 Sep 2013, at 10:55, Stefan G. Weichinger li...@xunil.at wrote:

 Am 18.09.2013 11:53, schrieb Stefan G. Weichinger:
 
 Rebuilt openssh already.
 
 Maybe I should downgrade for testing ...
 
 The problematic box: net-misc/openssh-6.2_p2-r4
 The working box: net-misc/openssh-5.9_p1-r4
 
 Yep. Downgrading works for me.
 
 

Not sure why a downgraded openssh would improve things for you if this is the 
issue, however I faced the same issue as yourself and it was caused by mDNS 
trying to do a reverse lookup on the host connecting in to the affected server, 
ultimately causing the SSH connection to hang.

Check that the order of sources on the hosts line of you /etc/nsswitch.conf[1] 
file on the server that you are having issues _connecting to_, not the desktop 
that you're connecting from.

Mine is:

`hosts:  files dns mdns4_minimal mdns4`

Note `dns` is before `mdns4`.

[1] http://linux.die.net/man/5/nsswitch.conf

Joe


Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Stefan G. Weichinger
Am 18.09.2013 19:47, schrieb Joe Nyland:
 Not sure why a downgraded openssh would improve things for you if
 this is the issue, however I faced the same issue as yourself and it
 was caused by mDNS trying to do a reverse lookup on the host
 connecting in to the affected server, ultimately causing the SSH
 connection to hang.
 
 Check that the order of sources on the hosts line of you
 /etc/nsswitch.conf[1] file on the server that you are having issues
 _connecting to_, not the desktop that you're connecting from.
 
 Mine is:
 
 `hosts:  files dns mdns4_minimal mdns4`
 
 Note `dns` is before `mdns4`.
 
 [1] http://linux.die.net/man/5/nsswitch.conf

Thanks for your feedback.

The server doesn't have mdns in there, just:

hosts:  files dns

(which hasn't been changed in years, I am quite sure).

So you suggest that the contacted server wants to know which FQDN the
contacting IP points to?

Stefan



Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Stefan G. Weichinger
Am 18.09.2013 20:03, schrieb Shawn Wilson:
 Since the downgrade fixed your issue idk... but, what does your
 authorized_keys look like? Also, move or chmod 0 your config to make
 sure nothing funny is happening there.

authorized_keys looks very OK ... only my 2 keys in there ... untouched
for years. did chmod 0600 now.



Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Shawn Wilson
Since the downgrade fixed your issue idk... but, what does your authorized_keys 
look like? Also, move or chmod 0 your config to make sure nothing funny is 
happening there. 

Stefan G. Weichinger li...@xunil.at wrote:
Am 18.09.2013 19:47, schrieb Joe Nyland:
 Not sure why a downgraded openssh would improve things for you if
 this is the issue, however I faced the same issue as yourself and it
 was caused by mDNS trying to do a reverse lookup on the host
 connecting in to the affected server, ultimately causing the SSH
 connection to hang.
 
 Check that the order of sources on the hosts line of you
 /etc/nsswitch.conf[1] file on the server that you are having issues
 _connecting to_, not the desktop that you're connecting from.
 
 Mine is:
 
 `hosts:  files dns mdns4_minimal mdns4`
 
 Note `dns` is before `mdns4`.
 
 [1] http://linux.die.net/man/5/nsswitch.conf

Thanks for your feedback.

The server doesn't have mdns in there, just:

hosts: files dns

(which hasn't been changed in years, I am quite sure).

So you suggest that the contacted server wants to know which FQDN the
contacting IP points to?

Stefan




Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Shawn Wilson
I was saying to chmod 000 it so that you're not picking up (possibly strange?) 
options. 

Stefan G. Weichinger li...@xunil.at wrote:
Am 18.09.2013 20:03, schrieb Shawn Wilson:
 Since the downgrade fixed your issue idk... but, what does your
 authorized_keys look like? Also, move or chmod 0 your config to make
 sure nothing funny is happening there.

authorized_keys looks very OK ... only my 2 keys in there ... untouched
for years. did chmod 0600 now.




Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread Stefan G. Weichinger
Am 18.09.2013 21:01, schrieb Shawn Wilson:
 I was saying to chmod 000 it so that you're not picking up (possibly 
 strange?) options. 

and it is still readable then? never tried 000.




Re: [gentoo-user] ssh hanging ... why?

2013-09-18 Thread shawn wilson
did chmod 0600 now.

You just made it read+writable by just you - you're running ssh by you,
right?

I referred to the man page because I thought there would be something I
could just quote and learned something Omitted digits are assumed to be
leading zeros. which makes sense, as I intuitively knew if I left out the
sticky bit, it would be unset but always thought: user, group, everyone
else. So, 'chmod 0 config' doesn't look as cluttered and conveys the same
meaning :)


On Wed, Sep 18, 2013 at 4:48 PM, Stefan G. Weichinger li...@xunil.atwrote:

 Am 18.09.2013 21:01, schrieb Shawn Wilson:
  I was saying to chmod 000 it so that you're not picking up (possibly
 strange?) options.

 and it is still readable then? never tried 000.