I am using SSH to connect from Ubuntu to a Raspberry (hostname "pi0alby"). It worked fine for months. Now, at beginning of the day, login starts fine but session is closed quite fast as:
. --- --- /etc/motd --------------------(this is the end of MOTD message)-------- .
No mail.
Last login: Fri Oct 16 11:24:23 2020 from 192.168.1.59
sebas@pi0alby:~ $ Connection to r0 closed.
The command I use normally is "ssh sebas@r0", where r0 is the IP of pi0alby in /etc/hosts.
After some googling, I found "-t" flag for ssh, so after the error, I launch "ssh -t sebas@r0" and it seems to work.
The "-t" flag it says is "Force pseudo-terminal allocation"
If I have a problem with "pseudo-terminal allocation", what can I do to debug this problem ?
I monitor "/var/log/auth.log", "/var/log/messages", but nothing special shows up.
Any clue is welcome.