Since this morning I cannot login normally on my server using SSH anymore.
Typically, when typing this:
The shell hangs and does not acquire shell. The last line of verbose with -vv gives me:
debug2: shell request accepted on channel 0
That said, if I launch a command directly in SSH, such as:
ssh email@example.com 'ls ~'
...it seems to work properly and it gives me the expected output. Actually, I can get a shell by forcing bash to launch in interactive mode, by typing:
ssh firstname.lastname@example.org 'bash -i'
I also tried to disable my .bashrc file (by moving it to .bashrc_OLD), but it didn't seem to be of any help.
Any suggestion would be much appreciated, thanks!
Edit: I've also tried to login with sh, but it didn't work neither. Thus I believe this is not related to a profile file issue.
Edit 2: when I manage to get a shell using the -i flag, here is the additionnal message I get from the console:
bash: cannot set terminal process group (-1): Invalid argument bash: no job control in this shell