Score:0

Session closed for user root

ru flag

I'm trying to use an old pc as server (ubuntu desktop LTS 22.04.02) and to connect from my new personal computer (ubuntu desktop LTS 22.04.02).

The command ssh -Y me@the other ip address worked once and never again.

Since then I get, from my new pc,

ssh: connect to host [ip] port [port]: Connection timed out

while the output in /var/log/auth.log (my old pc) is

Aug 1 ...omissis...: pam_unix(cron:session):session opened for user root (uid=0) by (uid=0)
Aug 1 ...omissis...: pam_unix(cron:session):session closed for user root

systemctl status sshd says it's active and enabled /etc/ssh/sshd_config is in order, as PasswordAythentication is set to yes

I don't know what to do

thank you very much in advance

EDIT: the old pc is not pingable from my new pc, while it is by itself. They both can ping themselves but not eachother. They are connected to the same hotspot (my phone)

John Hanley avatar
in flag
The details in your post do not make sense. The error `Connection timed out` means there was no connection to the host. There would not be host log entries for that connection attempt.
SO_32 avatar
ru flag
Thank you for your comment, there are indeed connection attempts log. I see your point, but I re-did the ls command to verify that, and the file was changed in the way I described.
John Hanley avatar
in flag
Are you running an OS firewall or usage blocking filter setting like `MaxAuthTries` or a software product that monitors SSH auth attempts? More details on your configuration are required.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.