When I ssh into one of my servers, it seems to log in, but then hangs before giving me the prompt (message debug2: shell request accepted on channel 0 is the last log entry).
Though the odd thing is ssh -t "/bin/bash" works when ssh doesn't.
What I have found out so far
- I can log in fine from servers in the same geographical location normally
- If I
ssh -t '/bin/bash'- I can log in perfectly from ANY location. - If I use
rsyncto the server , it seems to work, and then locks - If I use
rsyncfrom the server, it works without problem
What I have tried
- removing or changing all login options
.profile,.bashrc /etc/profile - Changing the
ssh_configand/orsshd_configto one from an identical server that works fine - I've checked the routing
- I've had a network expert examine
tcpdumpto no avail (though there do seem to be a lot of re-transmissions)
I really can't think of anything else
Apart from a dodgy network card driver/firmware.
matchstatements insshd_config? Is only one instance ofsshdrunning? – Hauke Laging Jun 26 '14 at 00:01.ssh/authorized_keyssuch ascommand=…? Have you gone through all the firewall rules to see if one might accidentally block some SSH packets? – Gilles 'SO- stop being evil' Jun 26 '14 at 00:50/etc/profile.d/*or/etc/bashrcfiles. – slm Jun 26 '14 at 01:27ssh -T? capitalT– Hastur Jun 26 '14 at 06:53