No prompt after successful ssh login

Not sure if this is the same issue I saw, but on Ubuntu they require bash to be run in login mode to set the prompt, as such unless you have login=yes in the sshd_config you will not get a prompt.


For the sake of others that end up with similar problems, here is another solution:

Our embedded system was allowing ssh connections, but was not giving a shell prompt. By setting the logging output to DEBUG3 in sshd_config and checking the /var/log/messages, we were able to determine that the ssh server was going to pause for about 100 years!

Our embedded system never initialised its clock, so it thought it was 1917. Because the ssh client message was from the future, the server was waiting for its own time to catch up to it. We resolved the problem by setting the time (using date) and restarting the server (using /etc/init.d/sshd restart).

Tags:

Ssh