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
rsync
to the server , it seems to work, and then locks - If I use
rsync
from the server, it works without problem
What I have tried
- removing or changing all login options
.profile
,.bashrc /etc/profile
- Changing the
ssh_config
and/orsshd_config
to one from an identical server that works fine - I've checked the routing
- I've had a network expert examine
tcpdump
to 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.
match
statements insshd_config
? Is only one instance ofsshd
running? – Hauke Laging Jun 26 '14 at 00:01.ssh/authorized_keys
such 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/bashrc
files. – slm Jun 26 '14 at 01:27ssh -T
? capitalT
– Hastur Jun 26 '14 at 06:53