Make sure the user account you're using on the remote machine has its default shell set to a valid value (e.g. /bin/bash). To check the currently set shell use:
Code:
grep <username> /etc/passwd
(the last value in the row is the default shell)
To change this value to /bin/bash use:
Code:
chsh -s /bin/bash <username>