You are not logged in.
I have managed to install and setup my archlinux laptop as an SSH server, following wiki:OpenSSH#Server_usage.
I could connect to it from my Windows PC via PuTTy plink several times until I typed
sudo reboot
in the remote ssh session. When I tried to reconnect after reboot, I was getting a Connection refused error
Network error: Connection refused
I saw in journalctl that the problem might be that the SSH session was not released, but how do I fix this?:
Aug 11 21:20:22 lappi sshd[1036]: pam_systemd(sshd:session): Failed to release session: Interrupted system call
I retried today, but now it does not even refuse the connection. On my client PC I'm getting a time-out
FATAL ERROR: Network error: Connection timed out
I don't understand that, because the sshd.service is running:
● sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-08-12 04:04:58 CEST; 1h 55min ago
Main PID: 503 (sshd)
Tasks: 1 (limit: 4915)
Memory: 4.4M
CGroup: /system.slice/sshd.service
└─503 /usr/bin/sshd -D
Aug 12 04:04:58 lappi systemd[1]: Started OpenSSH Daemon.
Aug 12 04:04:58 lappi sshd[503]: Server listening on 0.0.0.0 port 39901.
Aug 12 04:04:58 lappi sshd[503]: Server listening on :: port 39901.
Can you help me debug this? Here's a filtered journalctl since setting up the SSH server: http://ix.io/1Rn1
For what it's worth, here's my sshd_config.
Last edited by Nagidal (2019-08-12 05:11:48)
Offline
I solved it. Somehow before the reboot of my laptop, the SSH server accepted connections on all ports, including port 22, but after the remote reboot it only accepted connections on port 39901, as I configured it. I just did not try to establish the SSH connection at the correct port.
Offline