Hi! I'm trying to set up a SSH server in my home network, mostly to share files through SSHFS. No one can authenticate properly though, neither using special SSHFS software, nor plain NetBSD's built-in command line SSH client. OpenBSD version is 7.1, as it's been over a year since I've tried to make it work, but I suspect that the problem lies in the configuration, rather than version. I'm going to update the system eventually, but I want to sort this problem out first.
I checked several tutorials on this, generated and placed the key files accordingly, made sure that the ownership and permissions are all correctly set. It still doesn't work and I'm out of ideas what's exactly wrong (probably some tiny detail I overlook). The server, My_server
, has a network address 192.168.0.250
.
First, here is authlog. I adjusted the LogLevel value during the tests, as well as other entries in sshd_conf, that's why there are so many system reboot events:
Jul 8 20:16:27 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 8 20:29:19 My_server shutdown: reboot by root:
Jul 8 20:30:21 My_server sshd[37994]: Server listening on 192.168.0.250 port 22.
Jul 8 20:31:43 My_server sshd[96430]: Connection from 192.168.0.145 port 65433 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:31:52 My_server sshd[96430]: Connection closed by 192.168.0.145 port 65433 [preauth]
Jul 8 20:33:43 My_server sshd[70733]: Connection from 192.168.0.145 port 65429 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:33:50 My_server sshd[70733]: Failed publickey for JaWie_66 from 192.168.0.145 port 65429 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:33:50 My_server sshd[70733]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65429 [preauth]
Jul 8 20:35:37 My_server sshd[90866]: Connection from 192.168.0.145 port 65428 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:35:37 My_server sshd[90866]: Failed publickey for JaWie_66 from 192.168.0.145 port 65428 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:35:37 My_server sshd[90866]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65428 [preauth]
Jul 8 20:40:17 My_server sshd[77019]: Connection from 192.168.0.145 port 65405 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:40:18 My_server sshd[77019]: Failed publickey for JaWie_66 from 192.168.0.145 port 65405 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:40:18 My_server sshd[77019]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65405 [preauth]
Jul 8 20:41:49 My_server sshd[15286]: Connection from 192.168.0.145 port 65404 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:41:49 My_server sshd[15286]: Failed publickey for JaWie_66 from 192.168.0.145 port 65404 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:41:49 My_server sshd[15286]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65404 [preauth]
Jul 8 20:45:46 My_server sshd[93831]: Connection from 192.168.0.145 port 65403 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:45:46 My_server sshd[93831]: Failed publickey for JaWie_66 from 192.168.0.145 port 65403 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:45:46 My_server sshd[93831]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65403 [preauth]
Jul 8 20:50:05 My_server sshd[46419]: Connection from 192.168.0.145 port 65397 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:50:05 My_server sshd[46419]: Failed publickey for JaWie_66 from 192.168.0.145 port 65397 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:50:05 My_server sshd[46419]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65397 [preauth]
Jul 8 20:50:15 My_server sshd[83674]: Connection from 192.168.0.145 port 65396 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:50:15 My_server sshd[83674]: Failed publickey for JaWie_66 from 192.168.0.145 port 65396 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:50:15 My_server sshd[83674]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65396 [preauth]
Jul 8 20:50:22 My_server sshd[63620]: Connection from 192.168.0.145 port 65395 on 192.168.0.250 port 22 rdomain "0"
Jul 8 20:50:23 My_server sshd[63620]: Failed publickey for JaWie_66 from 192.168.0.145 port 65395 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 20:50:23 My_server sshd[63620]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65395 [preauth]
Jul 8 22:21:21 My_server sshd[88457]: Connection from 192.168.0.145 port 65336 on 192.168.0.250 port 22 rdomain "0"
Jul 8 22:21:21 My_server sshd[88457]: Failed publickey for JaWie_66 from 192.168.0.145 port 65336 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 22:21:21 My_server sshd[88457]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65336 [preauth]
Jul 8 22:27:27 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 8 22:48:32 My_server sshd[37994]: Received signal 15; terminating.
Jul 8 22:48:32 My_server sshd[16330]: Server listening on 192.168.0.250 port 22.
Jul 8 22:48:43 My_server sshd[80670]: Connection from 192.168.0.145 port 65321 on 192.168.0.250 port 22 rdomain "0"
Jul 8 22:48:44 My_server sshd[80670]: Failed publickey for JaWie_66 from 192.168.0.145 port 65321 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 22:48:44 My_server sshd[80670]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65321 [preauth]
Jul 8 22:55:30 My_server sshd[16330]: Received signal 15; terminating.
Jul 8 22:55:30 My_server sshd[58067]: Server listening on 192.168.0.250 port 22.
Jul 8 22:56:52 My_server sshd[53444]: Connection from 192.168.0.145 port 65312 on 192.168.0.250 port 22 rdomain "0"
Jul 8 22:56:52 My_server sshd[53444]: Failed publickey for JaWie_66 from 192.168.0.145 port 65312 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 22:56:52 My_server sshd[53444]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65312 [preauth]
Jul 8 22:57:19 My_server sshd[72589]: Connection from 192.168.0.145 port 65311 on 192.168.0.250 port 22 rdomain "0"
Jul 8 22:57:19 My_server sshd[72589]: Failed publickey for JaWie_66 from 192.168.0.145 port 65311 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 22:57:19 My_server sshd[72589]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65311 [preauth]
Jul 8 23:01:01 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 8 23:01:37 My_server shutdown: power-down by root:
Jul 8 23:46:30 My_server sshd[95435]: Server listening on 192.168.0.250 port 22.
Jul 8 23:47:19 My_server sshd[78656]: Connection from 192.168.0.145 port 65464 on 192.168.0.250 port 22 rdomain "0"
Jul 8 23:47:29 My_server sshd[78656]: fatal: Timeout before authentication for 192.168.0.145 port 65464
Jul 8 23:47:36 My_server sshd[22263]: Connection from 192.168.0.145 port 65463 on 192.168.0.250 port 22 rdomain "0"
Jul 8 23:47:42 My_server sshd[22263]: Failed publickey for JaWie_66 from 192.168.0.145 port 65463 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 8 23:47:43 My_server sshd[22263]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65463 [preauth]
Jul 9 00:03:31 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 00:04:54 My_server sshd[95435]: Received signal 15; terminating.
Jul 9 00:04:54 My_server sshd[84751]: Server listening on 192.168.0.250 port 22.
Jul 9 00:05:14 My_server sshd[69485]: Connection from 192.168.0.145 port 65395 on 192.168.0.250 port 22 rdomain "0"
Jul 9 00:05:19 My_server sshd[69485]: Failed publickey for JaWie_66 from 192.168.0.145 port 65395 ssh2: ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU
Jul 9 00:05:19 My_server sshd[69485]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65395 [preauth]
Jul 9 00:07:36 My_server shutdown: power-down by root:
Jul 9 15:43:41 My_server sshd[66849]: Server listening on 192.168.0.250 port 22.
Jul 9 16:05:45 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 16:05:52 My_server shutdown: power-down by root:
Jul 9 18:05:57 My_server sshd[17287]: Server listening on 192.168.0.250 port 22.
Jul 9 18:19:25 My_server sshd[98941]: Connection from 192.168.0.152 port 49499 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:19:25 My_server sshd[98941]: Connection closed by authenticating user John 192.168.0.152 port 49499 [preauth]
Jul 9 18:20:09 My_server sshd[30253]: Connection from 192.168.0.152 port 49502 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:20:09 My_server sshd[30253]: Connection closed by authenticating user John 192.168.0.152 port 49502 [preauth]
Jul 9 18:23:58 My_server sshd[83577]: Connection from 192.168.0.152 port 49530 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:23:58 My_server sshd[83577]: Connection closed by authenticating user John 192.168.0.152 port 49530 [preauth]
Jul 9 18:27:40 My_server sshd[52319]: Connection from 192.168.0.152 port 49757 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:27:40 My_server sshd[52319]: Connection closed by authenticating user John 192.168.0.152 port 49757 [preauth]
Jul 9 18:29:51 My_server sshd[30274]: Connection from 192.168.0.152 port 49799 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:29:52 My_server sshd[30274]: Connection closed by authenticating user John 192.168.0.152 port 49799 [preauth]
Jul 9 18:29:55 My_server sshd[28020]: Connection from 192.168.0.152 port 49803 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:29:55 My_server sshd[28020]: Connection closed by authenticating user John 192.168.0.152 port 49803 [preauth]
Jul 9 18:30:02 My_server sshd[29559]: Connection from 192.168.0.152 port 49806 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:30:02 My_server sshd[29559]: Connection closed by authenticating user John 192.168.0.152 port 49806 [preauth]
Jul 9 18:37:34 My_server sshd[93096]: Connection from 192.168.0.152 port 49877 on 192.168.0.250 port 22 rdomain "0"
Jul 9 18:37:35 My_server sshd[93096]: Connection closed by authenticating user John 192.168.0.152 port 49877 [preauth]
Jul 9 19:02:17 My_server sshd[6307]: Connection from 192.168.0.152 port 49949 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:02:17 My_server sshd[6307]: Connection closed by authenticating user John 192.168.0.152 port 49949 [preauth]
Jul 9 19:03:06 My_server sshd[51549]: Connection from 192.168.0.152 port 49952 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:03:07 My_server sshd[51549]: Failed publickey for John from 192.168.0.152 port 49952 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:03:07 My_server sshd[51549]: Connection closed by authenticating user John 192.168.0.152 port 49952 [preauth]
Jul 9 19:04:54 My_server sshd[259]: Connection from 192.168.0.152 port 49969 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:04:54 My_server sshd[259]: Failed publickey for John from 192.168.0.152 port 49969 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:04:54 My_server sshd[259]: Failed publickey for John from 192.168.0.152 port 49969 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:04:54 My_server sshd[259]: error: maximum authentication attempts exceeded for John from 192.168.0.152 port 49969 ssh2 [preauth]
Jul 9 19:04:54 My_server sshd[259]: Disconnecting authenticating user John 192.168.0.152 port 49969: Too many authentication failures [preauth]
Jul 9 19:05:10 My_server sshd[74957]: Connection from 192.168.0.152 port 49972 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:05:11 My_server sshd[74957]: Failed publickey for John from 192.168.0.152 port 49972 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:05:11 My_server sshd[74957]: Connection closed by authenticating user John 192.168.0.152 port 49972 [preauth]
Jul 9 19:05:44 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 19:11:08 My_server sshd[17287]: Received signal 15; terminating.
Jul 9 19:11:08 My_server sshd[56165]: Server listening on 192.168.0.250 port 22.
Jul 9 19:11:17 My_server sshd[37578]: Connection from 192.168.0.152 port 50005 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:11:17 My_server sshd[37578]: Failed publickey for John from 192.168.0.152 port 50005 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:11:17 My_server sshd[37578]: Connection closed by authenticating user John 192.168.0.152 port 50005 [preauth]
Jul 9 19:13:48 My_server sshd[56165]: Received signal 15; terminating.
Jul 9 19:13:48 My_server sshd[31519]: Server listening on 192.168.0.250 port 22.
Jul 9 19:13:54 My_server sshd[14324]: Connection from 192.168.0.152 port 50008 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:13:54 My_server sshd[14324]: Failed publickey for John from 192.168.0.152 port 50008 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:13:54 My_server sshd[14324]: Connection closed by authenticating user John 192.168.0.152 port 50008 [preauth]
Jul 9 19:19:49 My_server shutdown: reboot by root:
Jul 9 19:20:51 My_server sshd[29387]: Server listening on 192.168.0.250 port 22.
Jul 9 19:21:02 My_server sshd[63912]: Connection from 192.168.0.152 port 50014 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:21:02 My_server sshd[63912]: Failed publickey for John from 192.168.0.152 port 50014 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:21:02 My_server sshd[63912]: Connection closed by authenticating user John 192.168.0.152 port 50014 [preauth]
Jul 9 19:21:22 My_server sshd[61283]: Connection from 192.168.0.152 port 50017 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:21:22 My_server sshd[61283]: Failed publickey for John from 192.168.0.152 port 50017 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:21:22 My_server sshd[61283]: Connection closed by authenticating user John 192.168.0.152 port 50017 [preauth]
Jul 9 19:21:34 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 19:33:58 My_server sshd[29387]: Received signal 15; terminating.
Jul 9 19:34:46 My_server shutdown: reboot by root:
Jul 9 19:36:31 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 19:40:00 My_server shutdown: reboot by root:
Jul 9 19:41:02 My_server sshd[38552]: Server listening on 192.168.0.250 port 22.
Jul 9 19:42:45 My_server sshd[56948]: Connection from 192.168.0.152 port 50063 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:42:46 My_server sshd[56948]: Failed publickey for John from 192.168.0.152 port 50063 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:42:46 My_server sshd[56948]: Connection closed by authenticating user John 192.168.0.152 port 50063 [preauth]
Jul 9 19:48:28 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 19:50:09 My_server shutdown: reboot by root:
Jul 9 19:51:36 My_server sshd[29414]: Server listening on 192.168.0.250 port 22.
Jul 9 19:52:27 My_server sshd[70972]: Connection from 192.168.0.152 port 50098 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:52:28 My_server sshd[70972]: Connection closed by authenticating user John 192.168.0.152 port 50098 [preauth]
Jul 9 19:52:42 My_server sshd[33995]: Connection from 192.168.0.152 port 50101 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:52:42 My_server sshd[33995]: Failed publickey for John from 192.168.0.152 port 50101 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 19:52:42 My_server sshd[33995]: Connection closed by authenticating user John 192.168.0.152 port 50101 [preauth]
Jul 9 19:57:30 My_server sshd[88255]: Connection from 192.168.0.145 port 65535 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:57:31 My_server sshd[88255]: Accepted key ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Jul 9 19:57:31 My_server sshd[88255]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65535 ssh2 [preauth]
Jul 9 19:57:40 My_server sshd[88255]: fatal: Timeout before authentication for 192.168.0.145 port 65535
Jul 9 19:58:20 My_server sshd[64417]: Connection from 192.168.0.145 port 65534 on 192.168.0.250 port 22 rdomain "0"
Jul 9 19:58:20 My_server sshd[64417]: Accepted key ED25519 SHA256:C0BzCcJIL0VM96UdWr12aywwCeFHOXBtDk2n2ztFpfU found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Jul 9 19:58:20 My_server sshd[64417]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65534 ssh2 [preauth]
Jul 9 19:58:30 My_server sshd[64417]: fatal: Timeout before authentication for 192.168.0.145 port 65534
Jul 9 19:58:45 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 20:11:09 My_server sshd[52386]: Connection from 192.168.0.152 port 50145 on 192.168.0.250 port 22 rdomain "0"
Jul 9 20:11:09 My_server sshd[52386]: Failed publickey for John from 192.168.0.152 port 50145 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 20:11:09 My_server sshd[52386]: Connection closed by authenticating user John 192.168.0.152 port 50145 [preauth]
Jul 9 20:11:16 My_server sshd[57751]: Connection from 192.168.0.152 port 50148 on 192.168.0.250 port 22 rdomain "0"
Jul 9 20:11:17 My_server sshd[57751]: Failed publickey for John from 192.168.0.152 port 50148 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 20:11:17 My_server sshd[57751]: Connection closed by authenticating user John 192.168.0.152 port 50148 [preauth]
Jul 9 20:17:14 My_server shutdown: power-down by root:
Jul 9 21:02:24 My_server sshd[15780]: Server listening on 192.168.0.250 port 22.
Jul 9 21:03:45 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 21:29:05 My_server shutdown: power-down by root:
Jul 9 21:31:10 My_server sshd[73261]: Server listening on 192.168.0.250 port 22.
Jul 9 21:36:11 My_server sshd[86466]: Connection from 192.168.0.152 port 50324 on 192.168.0.250 port 22 rdomain "0"
Jul 9 21:36:11 My_server sshd[86466]: Failed publickey for John from 192.168.0.152 port 50324 ssh2: ED25519 SHA256:cvxPdEFt/1pbRw4oeBC5zngEtWdNA0lXfYirLinpZQ4
Jul 9 21:36:11 My_server sshd[86466]: Connection closed by authenticating user John 192.168.0.152 port 50324 [preauth]
Jul 9 21:36:47 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 21:37:32 My_server shutdown: power-down by root:
Jul 9 21:39:03 My_server sshd[98295]: Server listening on 192.168.0.250 port 22.
Jul 9 21:40:19 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 22:17:53 My_server shutdown: power-down by root:
Jul 9 22:20:02 My_server sshd[36818]: Server listening on 192.168.0.250 port 22.
Jul 9 22:24:50 My_server sshd[16668]: Connection from 192.168.0.152 port 49717 on 192.168.0.250 port 22 rdomain "0"
Jul 9 22:24:51 My_server sshd[16668]: Failed publickey for John from 192.168.0.152 port 49717 ssh2: ED25519 SHA256:zCU0pdTq9JHcBTMKmuRSBtOsMYdcJSQDaQq2lYOVz5Q
Jul 9 22:24:51 My_server sshd[16668]: Connection closed by authenticating user John 192.168.0.152 port 49717 [preauth]
Jul 9 22:25:20 My_server sshd[20215]: Connection from 192.168.0.152 port 49726 on 192.168.0.250 port 22 rdomain "0"
Jul 9 22:25:20 My_server sshd[20215]: Failed publickey for John from 192.168.0.152 port 49726 ssh2: ED25519 SHA256:zCU0pdTq9JHcBTMKmuRSBtOsMYdcJSQDaQq2lYOVz5Q
Jul 9 22:25:20 My_server sshd[20215]: Connection closed by authenticating user John 192.168.0.152 port 49726 [preauth]
Jul 9 22:25:29 My_server sshd[78996]: Connection from 192.168.0.152 port 49729 on 192.168.0.250 port 22 rdomain "0"
Jul 9 22:25:29 My_server sshd[78996]: Failed publickey for John from 192.168.0.152 port 49729 ssh2: ED25519 SHA256:zCU0pdTq9JHcBTMKmuRSBtOsMYdcJSQDaQq2lYOVz5Q
Jul 9 22:25:29 My_server sshd[78996]: Connection closed by authenticating user John 192.168.0.152 port 49729 [preauth]
Jul 9 22:27:34 My_server sshd[57753]: Connection from 192.168.0.152 port 49756 on 192.168.0.250 port 22 rdomain "0"
Jul 9 22:27:34 My_server sshd[57753]: Failed publickey for John from 192.168.0.152 port 49756 ssh2: ED25519 SHA256:zCU0pdTq9JHcBTMKmuRSBtOsMYdcJSQDaQq2lYOVz5Q
Jul 9 22:27:34 My_server sshd[57753]: Connection closed by authenticating user John 192.168.0.152 port 49756 [preauth]
Jul 9 22:29:27 My_server login: ROOT LOGIN (root) ON ttyC0
Jul 9 22:31:16 My_server shutdown: power-down by root:
Sep 3 19:51:50 My_server sshd[6027]: Server listening on 192.168.0.250 port 22.
Sep 3 19:52:07 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 02:17:01 My_server shutdown: power-down by root:
Sep 4 12:05:06 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 13:20:54 My_server sshd[1868]: Server listening on 192.168.0.250 port 22.
Sep 4 13:21:32 My_server shutdown: reboot by root:
Sep 4 13:22:35 My_server sshd[47955]: Server listening on 192.168.0.250 port 22.
Sep 4 13:45:22 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 13:46:02 My_server shutdown: power-down by root:
Sep 4 15:29:37 My_server sshd[91313]: Server listening on 192.168.0.250 port 22.
Sep 4 18:27:18 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 19:16:01 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 21:12:05 My_server shutdown: power-down by root:
Sep 4 21:47:59 My_server sshd[28308]: Server listening on 192.168.0.250 port 22.
Sep 4 22:31:02 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 4 23:01:31 My_server shutdown: power-down by root:
Sep 5 08:32:22 My_server sshd[64186]: Server listening on 192.168.0.250 port 22.
Sep 5 08:55:23 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 09:02:57 My_server shutdown: reboot by root:
Sep 5 09:04:00 My_server sshd[92410]: Server listening on 192.168.0.250 port 22.
Sep 5 09:08:25 My_server sshd[40084]: Connection from 192.168.0.152 port 50216 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:08:35 My_server sshd[40084]: fatal: Timeout before authentication for 192.168.0.152 port 50216
Sep 5 09:09:19 My_server sshd[71674]: Connection from 192.168.0.152 port 50234 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:09:19 My_server sshd[71674]: Failed publickey for John from 192.168.0.152 port 50234 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:09:19 My_server sshd[71674]: Connection closed by authenticating user John 192.168.0.152 port 50234 [preauth]
Sep 5 09:11:25 My_server sshd[68782]: Connection from 192.168.0.152 port 50249 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:11:28 My_server sshd[68782]: Failed publickey for John from 192.168.0.152 port 50249 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:11:28 My_server sshd[68782]: Connection closed by authenticating user John 192.168.0.152 port 50249 [preauth]
Sep 5 09:11:55 My_server sshd[3672]: Connection from 192.168.0.152 port 50250 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:11:55 My_server sshd[3672]: Failed publickey for John from 192.168.0.152 port 50250 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:11:55 My_server sshd[3672]: Connection closed by authenticating user John 192.168.0.152 port 50250 [preauth]
Sep 5 09:13:42 My_server sshd[39107]: Connection from 192.168.0.152 port 50260 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:13:42 My_server sshd[39107]: Failed publickey for John from 192.168.0.152 port 50260 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:13:42 My_server sshd[39107]: Connection closed by authenticating user John 192.168.0.152 port 50260 [preauth]
Sep 5 09:15:24 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 09:16:17 My_server shutdown: reboot by root:
Sep 5 09:17:44 My_server sshd[53058]: Server listening on 192.168.0.250 port 22.
Sep 5 09:18:38 My_server sshd[56990]: Connection from 192.168.0.152 port 50261 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:18:39 My_server sshd[56990]: Failed publickey for John from 192.168.0.152 port 50261 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:18:39 My_server sshd[56990]: Connection closed by authenticating user John 192.168.0.152 port 50261 [preauth]
Sep 5 09:30:24 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 09:32:04 My_server sshd[75268]: Connection from 192.168.0.152 port 50326 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:32:04 My_server sshd[75268]: Failed publickey for John from 192.168.0.152 port 50326 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:32:04 My_server sshd[75268]: Connection closed by authenticating user John 192.168.0.152 port 50326 [preauth]
Sep 5 09:36:37 My_server shutdown: reboot by root:
Sep 5 09:37:39 My_server sshd[30131]: Server listening on 192.168.0.250 port 22.
Sep 5 09:39:02 My_server sshd[39745]: Connection from 192.168.0.152 port 50333 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:39:02 My_server sshd[39745]: Failed publickey for John from 192.168.0.152 port 50333 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:39:02 My_server sshd[39745]: Connection closed by authenticating user John 192.168.0.152 port 50333 [preauth]
Sep 5 09:47:48 My_server sshd[18718]: Connection from 192.168.0.152 port 50357 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:47:58 My_server sshd[18718]: fatal: Timeout before authentication for 192.168.0.152 port 50357
Sep 5 09:51:59 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 09:52:35 My_server shutdown: reboot by root:
Sep 5 09:54:03 My_server sshd[48089]: Server listening on 192.168.0.250 port 22.
Sep 5 09:54:50 My_server sshd[58706]: Connection from 192.168.0.152 port 50379 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:54:50 My_server sshd[58706]: Failed publickey for John from 192.168.0.152 port 50379 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:54:50 My_server sshd[58706]: error: Received disconnect from 192.168.0.152 port 50379:14: No authentication methods available [preauth]
Sep 5 09:54:50 My_server sshd[58706]: Disconnected from authenticating user John 192.168.0.152 port 50379 [preauth]
Sep 5 09:55:30 My_server sshd[29644]: Connection from 192.168.0.152 port 50380 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:55:30 My_server sshd[29644]: Failed publickey for John from 192.168.0.152 port 50380 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:55:30 My_server sshd[29644]: error: Received disconnect from 192.168.0.152 port 50380:14: No authentication methods available [preauth]
Sep 5 09:55:30 My_server sshd[29644]: Disconnected from authenticating user John 192.168.0.152 port 50380 [preauth]
Sep 5 09:56:23 My_server sshd[9494]: Connection from 192.168.0.152 port 50382 on 192.168.0.250 port 22 rdomain "0"
Sep 5 09:56:23 My_server sshd[9494]: Failed publickey for John from 192.168.0.152 port 50382 ssh2: ED25519 SHA256:2vmhwryVW4t4gOOWmfRwYvCqZ66d/28L34Fr3I16MCM
Sep 5 09:56:23 My_server sshd[9494]: error: Received disconnect from 192.168.0.152 port 50382:14: No authentication methods available [preauth]
Sep 5 09:56:23 My_server sshd[9494]: Disconnected from authenticating user John 192.168.0.152 port 50382 [preauth]
Sep 5 10:01:41 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 10:06:42 My_server shutdown: power-down by root:
Sep 5 11:27:00 My_server sshd[51583]: Server listening on 192.168.0.250 port 22.
Sep 5 11:31:10 My_server sshd[87427]: Connection from 192.168.0.145 port 65404 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:31:16 My_server sshd[87427]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:31:16 My_server sshd[87427]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65404 ssh2 [preauth]
Sep 5 11:31:16 My_server sshd[87427]: Connection closed by authenticating user JaWie_66 192.168.0.145 port 65404 [preauth]
Sep 5 11:31:59 My_server sshd[30653]: Connection from 192.168.0.145 port 65403 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:31:59 My_server sshd[30653]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:31:59 My_server sshd[30653]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65403 ssh2 [preauth]
Sep 5 11:32:09 My_server sshd[30653]: fatal: Timeout before authentication for 192.168.0.145 port 65403
Sep 5 11:32:42 My_server sshd[6011]: Connection from 192.168.0.145 port 65402 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:32:42 My_server sshd[6011]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:32:42 My_server sshd[6011]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65402 ssh2 [preauth]
Sep 5 11:32:52 My_server sshd[6011]: fatal: Timeout before authentication for 192.168.0.145 port 65402
Sep 5 11:34:56 My_server sshd[79418]: Connection from 192.168.0.145 port 65401 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:34:56 My_server sshd[79418]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:34:56 My_server sshd[79418]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65401 ssh2 [preauth]
Sep 5 11:35:06 My_server sshd[79418]: fatal: Timeout before authentication for 192.168.0.145 port 65401
Sep 5 11:42:08 My_server sshd[8931]: Connection from 192.168.0.145 port 65378 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:42:08 My_server sshd[8931]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:42:08 My_server sshd[8931]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65378 ssh2 [preauth]
Sep 5 11:42:18 My_server sshd[8931]: fatal: Timeout before authentication for 192.168.0.145 port 65378
Sep 5 11:43:14 My_server login: ROOT LOGIN (root) ON ttyC0
Sep 5 11:43:54 My_server shutdown: reboot by root:
Sep 5 11:45:20 My_server sshd[68792]: Server listening on 192.168.0.250 port 22.
Sep 5 11:46:19 My_server sshd[52951]: Connection from 192.168.0.145 port 65377 on 192.168.0.250 port 22 rdomain "0"
Sep 5 11:46:20 My_server sshd[52951]: Accepted key ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 found at /srv/SFTP/JaWie_66/.ssh/authorized_keys2:1
Sep 5 11:46:20 My_server sshd[52951]: Postponed publickey for JaWie_66 from 192.168.0.145 port 65377 ssh2 [preauth]
Sep 5 11:46:29 My_server sshd[52951]: fatal: Timeout before authentication for 192.168.0.145 port 65377
Sep 5 11:46:57 My_server login: ROOT LOGIN (root) ON ttyC0
Below the contents of sshd_config:
# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
#AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#KbdInteractiveAuthentication yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# override default of no subsystems
#Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
AddressFamily inet
ListenAddress 192.168.0.250
Port 22
KbdInteractiveAuthentication no
ClientAliveCountMax 1
ClientAliveInterval 15
Compression yes
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr
HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org
MACs hmac-sha2-512-etm@openssh.com
HostbasedAcceptedAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com
IPQoS throughput
PasswordAuthentication no
LoginGraceTime 10
MaxAuthTries 2
MaxSessions 2
MaxStartups 2
PermitTunnel no
PermitUserEnvironment yes
PermitUserRC no
X11Forwarding no
StrictModes yes
AuthorizedKeysFile %h/.ssh/authorized_keys2
HostKey /etc/ssh/ssh_host_ed25519_key
AllowAgentForwarding no
AllowTcpForwarding no
AllowStreamLocalForwarding no
PermitRootLogin no
UseDNS no
# PubKeyAuthentication no
PubKeyAuthentication yes
AllowUsers Mary John Rex JaWie_66
AuthenticationMethods publickey
IgnoreRhosts yes
HostbasedAuthentication no
LogLevel VERBOSE
SyslogFacility AUTH
GatewayPorts no
PrintLastLog yes
TCPKeepAlive yes
Subsystem sftp internal-sftp -u 0027
ChrootDirectory /srv/
# ForceCommand internal-sftp -R -d /srv/Other_files
# ForceCommand internal-sftp -R -d /srv/My_server
# Match Group Local
# PubKeyAuthentication yes
I recorded logs from NetBSD's command-line SSH client (user JaWIe_66):
OpenSSH_9.0 NetBSD_Secure_Shell-20220415-hpn13v14-lpk, OpenSSL 1.1.1n 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 192.168.0.250 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/JaWie_66/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/JaWie_66/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.0.250 [192.168.0.250] port 22.
debug3: ssh_set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /home/JaWie_66/.ssh/id_ed25519 type 3
debug1: identity file /home/JaWie_66/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0 NetBSD_Secure_Shell-20220415-hpn13v14-lpk
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.0
debug1: compat_banner: match: OpenSSH_9.0 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.0.250:22 as 'JaWie_66'
debug3: record_hostkey: found key type ED25519 in file /home/JaWie_66/.ssh/known_hosts:1
debug3: ssh_load_hostkeys_file: loaded 1 keys from 192.168.0.250
debug1: load_hostkeys: fopen /home/JaWie_66/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org
debug2: host key algorithms: ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr
debug2: MACs ctos: hmac-sha2-512-etm@openssh.com
debug2: MACs stoc: hmac-sha2-512-etm@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: REQUESTED ENC.NAME is 'chacha20-poly1305@openssh.com'
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: REQUESTED ENC.NAME is 'chacha20-poly1305@openssh.com'
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:5lcpdFINXBrDApf4OGjPnVKPlFBTfPAyUtJthTII84c
debug3: record_hostkey: found key type ED25519 in file /home/JaWie_66/.ssh/known_hosts:1
debug3: ssh_load_hostkeys_file: loaded 1 keys from 192.168.0.250
debug1: load_hostkeys: fopen /home/JaWie_66/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '192.168.0.250' is known and matches the ED25519 host key.
debug1: Found key in /home/JaWie_66/.ssh/known_hosts:1
debug3: send packet: type 21
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/JaWie_66/.ssh/id_ed25519 ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred kerberos-2@ssh.com,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/JaWie_66/.ssh/id_ed25519 ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/JaWie_66/.ssh/id_ed25519 ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0 explicit
debug3: sign_and_send_pubkey: using publickey-hostbound-v00@openssh.com with ED25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:CiHYdUWhWxJsagcBBsVS1nDZL2p8UT7Qyr53YW+khB0
Enter passphrase for key '/home/JaWie_66/.ssh/id_ed25519':
debug3: send packet: type 50
Connection closed by 192.168.0.250 port 22
On a Windows 10 machine (user John), I tried two SSHFS clients. They both support less cipher algorithms than the BSDs. Both failed to authenticate. Here is the log from Bitvise SSH Client:
09:49:11.557 Current date: 2022-09-05
09:49:11.557 Bitvise SSH Client 9.23, a fully featured SSH client for Windows.
Copyright (C) 2000-2022 by Bitvise Limited.
09:49:11.557 Visit www.bitvise.com for latest information about our SSH software.
09:49:11.557 Run 'BvSsh -help' to learn about supported command-line parameters.
09:49:11.557 Cryptographic provider: Windows CNG (x86) with additions
09:49:12.323 Version status: Current
This is the latest release.
09:49:12.401 Loading default profile.
09:53:05.383 Started a new SSH connection.
09:53:05.383 Connecting to SSH server 192.168.0.250:22.
09:53:05.773 Connection established.
09:53:05.820 Server version: SSH-2.0-OpenSSH_9.0
09:53:05.820 First key exchange started. Cryptographic provider: Windows CNG (x86) with additions
09:53:05.883 Received host key from the server. Algorithm: Ed25519, size: 255 bits, SHA-256 fingerprint: 5lcpdFINXBrDApf4OGjPnVKPlFBTfPAyUtJthTII84c.
09:53:05.914 First key exchange completed using Curve25519. Connection encryption and integrity: chacha20-poly1305, compression: none.
09:53:05.961 Attempting publickey authentication. Testing client key 'Global 1' for acceptance.
09:53:05.992 Authentication failed. The key has been rejected. Remaining authentication methods: 'publickey'.
09:53:06.008 Authentication aborted. Reason: No authentication methods available.
09:53:06.008 The SSH connection has been terminated.
09:53:45.918 Started a new SSH connection.
09:53:45.918 Connecting to SSH server 192.168.0.250:22.
09:53:45.918 Connection established.
09:53:45.934 Server version: SSH-2.0-OpenSSH_9.0
09:53:45.934 First key exchange started. Cryptographic provider: Windows CNG (x86) with additions
09:53:45.965 Received host key from the server. Algorithm: Ed25519, size: 255 bits, SHA-256 fingerprint: 5lcpdFINXBrDApf4OGjPnVKPlFBTfPAyUtJthTII84c.
09:53:45.981 First key exchange completed using Curve25519. Connection encryption and integrity: chacha20-poly1305, compression: none.
09:53:45.981 Attempting publickey authentication. Testing client key 'Global 1' for acceptance.
09:53:45.996 Authentication failed. The key has been rejected. Remaining authentication methods: 'publickey'.
09:53:46.012 Authentication aborted. Reason: No authentication methods available.
09:53:46.012 The SSH connection has been terminated.
09:54:38.773 Started a new SSH connection.
09:54:38.773 Connecting to SSH server 192.168.0.250:22.
09:54:38.789 Connection established.
09:54:38.804 Server version: SSH-2.0-OpenSSH_9.0
09:54:38.804 First key exchange started. Cryptographic provider: Windows CNG (x86) with additions
09:54:38.836 Received host key from the server. Algorithm: Ed25519, size: 255 bits, SHA-256 fingerprint: 5lcpdFINXBrDApf4OGjPnVKPlFBTfPAyUtJthTII84c.
09:54:38.851 First key exchange completed using Curve25519. Connection encryption and integrity: chacha20-poly1305, compression: none.
09:54:38.851 Attempting publickey authentication. Testing client key 'Global 1' for acceptance.
09:54:38.867 Authentication failed. The key has been rejected. Remaining authentication methods: 'publickey'.
09:54:38.882 Authentication aborted. Reason: No authentication methods available.
09:54:38.882 The SSH connection has been terminated.
And finally, the log from SFTP Drive:
[09.05.2022 09:30:09] [TID=001] SFTP Drive 3.0.8165
[09.05.2022 09:30:09] [TID=001] Windows 10 x64 build 19041
[09.05.2022 09:30:09] [TID=001] Driver installed: 20.0.200.0
[09.05.2022 09:30:09] [TID=001] License: [Personal Edition]
[09.05.2022 09:30:09] [TID=001] LogMode: Debug
[09.05.2022 09:30:09] [TID=001] [VERB ] [Global]
AES_OtherAllowedFiles=""
DeleteLogDays=0
DriveDisplayFormat=0
ForceFileClose=True
HideDotFiles=False
IgnoredDirs=""
IgnoredFiles="autorun.inf,bootmgr,bootnxt,hiberfil.sys,pagefile.sys,desktop.ini"
KeepAliveInterval=15
Lang="en_US"
LocalHost=""
LogFile="C:\\Users\\John\\Documents\\ssh.log"
LogMode=5
LogPackets=False
LogPort=8266
LogToFile=True
MaskSensitive=True
MaxLogLines=1000
MountTimeout=20
PasswordEncryptionMethod="Auto"
PromptForOldVersionImport=True
PromptForRegPermissions=True
ProxyChecked=False
ProxyHost=""
ProxyPassword=""
ProxyPort=0
ProxyType=0
ProxyUsername=""
ReconnectAttempts=-1
ReconnectInterval=5
RotateLogDays=0
RotateLogSize=0
RunAsService=False
SessionExpirationTime=0
ShowDotFiles=True
SysLogAddress=""
Timeout=60
UseCompression=False
UseMetadataCache=True
[AppInfo]
Name="SFTPDrive"
Version="3.0.8165"
[Drives\John]
AuthType=1
CacheInfoValidityTime=30
CaseSensitiveNames=True
CertStore="C:\\Users\\John\\.ssh\\id_ed25519"
CertStorePassword="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA9rr7iPFUgEmcl6iruERtLAAAAAACAAAAAAAQZgAAAAEA\r\nACAAAAD0unep2lt/MK/1dcrbCPci/Mbfpt6PBtat5zo6Kt36ugAAAAAOgAAAAAIAACAAAAA4rGHv\r\nowvD3HYdRKFe72O8P8+wRFLCBOGdfjkzHkWy1RAAAABXldk+2xy/Dt4iISpI7mU0QAAAAJO+jPv4\r\n6+TTXAX8q/KFSn2/ndC+KzqDCLT+PWZIweZp+T0SSQOhIkvhY4a73hUe62i1s+Ow2J/BO3TdGuHo\r\nDMM="
CertStoreType=6
CertSubject="CN=pem_key_c4024024-34c2-4570-a6fa-6b7b79f1da6b"
DriveLetter="W:"
DriveType=0
Enabled=True
Host="192.168.0.250"
Index=0
KeyRenegotiationThreshold=-1L
Name="John"
OpenRemoteFolder=False
OpenSpecifiedFolder="."
Password=""
Port=22
Protocol=0
QueryAvailableSpace=True
RemoteRoot="User's home"
RemoteRootType=1
S3_EnableReadConflictDetection=True
S3_EnableWriteConflictDetection=True
SecurityKeyAccount=""
SecurityKeyPIN=""
SecurityKeyPKCS11LibPath=""
SecurityKeySavePIN=False
SFTP_CacheConcurrentDownloadFilesMax=4
SFTP_CacheConcurrentDownloadThreadsPerFile=4
SFTP_CacheConcurrentUploadFilesMax=4
SFTP_CacheConcurrentUploadThreadsPerFile=4
SFTP_CacheDirectory="C:\\ProgramData\\SFTPDrive\\John"
SFTP_CacheEnbledForRead=True
SFTP_CacheFileDeleteDelay=5
SFTP_CacheFileUploadDelay=5
SFTP_CacheFileUploadDelayThreshold=1048576
SFTP_CacheMaxUploadRetries=3
SFTP_CachePreDownloadSmallFileCount=4
SFTP_CachePreDownloadSmallFileSizeLimit=1048576
Shared=True
SSHKeepAliveCountMax=-1
SSHKeepAliveInterval=-1
Username="John"
[TrustedSSHHostKeys]
192.168.0.250:22="e6:57:29:74:52:0d:5c:1a:c3:02:97:f8:38:68:cf:9d:52:8f:94:50:53:7c:f0:32:52:d2:6d:85:32:08:f3:87"
[09.05.2022 09:30:09] [TID=001] [INFO ] [John] Mounting drive: 'John'.
[09.05.2022 09:30:09] [TID=001] [INFO ] [John] Establishing SFTP connection to 192.168.0.250 with user 'John'.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Sending local version: "SSH-2.0-IPWorks SSH Client 2020".
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Read remote version string: "SSH-2.0-OpenSSH_9.0".
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Beginning key exchange.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Preparing algorithm negotiation.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Sending local enabled algorithm list.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Reading remote enabled algorithm list.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected key exchange algorithm: "curve25519-sha256".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected server host key algorithm: "ssh-ed25519".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected client encryption algorithm: "aes256-ctr".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected server encryption algorithm: "aes256-ctr".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected client MAC algorithm: "hmac-sha2-512-etm@openssh.com".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected server MAC algorithm: "hmac-sha2-512-etm@openssh.com".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected client compression algorithm: "none".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Selected server compression algorithm: "none".
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Algorithm negotiation complete.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Sending ECDH key exchange initialization request.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Verifying server's Diffie-Hellman key exchange response.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Diffie-Hellman key exchange complete. Calculating key sets.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Sending new key packet to server. Setting client keys.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Received new key packet from server. Setting server keys.
[09.05.2022 09:30:19] [TID=007] [INFO ] [John] Key exchange complete.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Requesting service: "ssh-userauth".
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Service request "ssh-userauth" accepted.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Authenticating user for service "ssh-connection".
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Requesting user's authentication mechanism list from SSH host.
[09.05.2022 09:30:19] [TID=001] [INFO ] [John] Attempting public key authentication.
[09.05.2022 09:30:19] [TID=001] [ERROR] [John] SSH connection failed: Public key authentication failed. The following authentication methods are available for this user: publickey.
[09.05.2022 09:30:19] [TID=001] [WARN ] No drives were successfully mounted.
[09.05.2022 09:37:06] [TID=001] SFTP Drive 3.0.8165
[09.05.2022 09:37:06] [TID=001] Windows 10 x64 build 19041
[09.05.2022 09:37:06] [TID=001] Driver installed: 20.0.200.0
[09.05.2022 09:37:06] [TID=001] License: [Personal Edition]
[09.05.2022 09:37:06] [TID=001] LogMode: Debug
[09.05.2022 09:37:06] [TID=001] [VERB ] [Global]
AES_OtherAllowedFiles=""
DeleteLogDays=0
DriveDisplayFormat=0
ForceFileClose=True
HideDotFiles=False
IgnoredDirs=""
IgnoredFiles="autorun.inf,bootmgr,bootnxt,hiberfil.sys,pagefile.sys,desktop.ini"
KeepAliveInterval=15
Lang="en_US"
LocalHost=""
LogFile="C:\\Users\\John\\Documents\\ssh.log"
LogMode=5
LogPackets=False
LogPort=8266
LogToFile=True
MaskSensitive=True
MaxLogLines=1000
MountTimeout=20
PasswordEncryptionMethod="Auto"
PromptForOldVersionImport=True
PromptForRegPermissions=True
ProxyChecked=False
ProxyHost=""
ProxyPassword=""
ProxyPort=0
ProxyType=0
ProxyUsername=""
ReconnectAttempts=-1
ReconnectInterval=5
RotateLogDays=0
RotateLogSize=0
RunAsService=False
SessionExpirationTime=0
ShowDotFiles=True
SysLogAddress=""
Timeout=60
UseCompression=False
UseMetadataCache=True
[AppInfo]
Name="SFTPDrive"
Version="3.0.8165"
[Drives\John]
AuthType=1
CacheInfoValidityTime=30
CaseSensitiveNames=True
CertStore="C:\\Users\\John\\.ssh\\id_ed25519"
CertStorePassword="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA9rr7iPFUgEmcl6iruERtLAAAAAACAAAAAAAQZgAAAAEA\r\nACAAAAD0unep2lt/MK/1dcrbCPci/Mbfpt6PBtat5zo6Kt36ugAAAAAOgAAAAAIAACAAAAA4rGHv\r\nowvD3HYdRKFe72O8P8+wRFLCBOGdfjkzHkWy1RAAAABXldk+2xy/Dt4iISpI7mU0QAAAAJO+jPv4\r\n6+TTXAX8q/KFSn2/ndC+KzqDCLT+PWZIweZp+T0SSQOhIkvhY4a73hUe62i1s+Ow2J/BO3TdGuHo\r\nDMM="
CertStoreType=6
CertSubject="CN=pem_key_c4024024-34c2-4570-a6fa-6b7b79f1da6b"
DriveLetter="W:"
DriveType=0
Enabled=True
Host="192.168.0.250"
Index=0
KeyRenegotiationThreshold=-1L
Name="John"
OpenRemoteFolder=False
OpenSpecifiedFolder="."
Password=""
Port=22
Protocol=0
QueryAvailableSpace=True
RemoteRoot="User's home"
RemoteRootType=1
S3_EnableReadConflictDetection=True
S3_EnableWriteConflictDetection=True
SecurityKeyAccount=""
SecurityKeyPIN=""
SecurityKeyPKCS11LibPath=""
SecurityKeySavePIN=False
SFTP_CacheConcurrentDownloadFilesMax=4
SFTP_CacheConcurrentDownloadThreadsPerFile=4
SFTP_CacheConcurrentUploadFilesMax=4
SFTP_CacheConcurrentUploadThreadsPerFile=4
SFTP_CacheDirectory="C:\\ProgramData\\SFTPDrive\\John"
SFTP_CacheEnbledForRead=True
SFTP_CacheFileDeleteDelay=5
SFTP_CacheFileUploadDelay=5
SFTP_CacheFileUploadDelayThreshold=1048576
SFTP_CacheMaxUploadRetries=3
SFTP_CachePreDownloadSmallFileCount=4
SFTP_CachePreDownloadSmallFileSizeLimit=1048576
Shared=True
SSHKeepAliveCountMax=-1
SSHKeepAliveInterval=-1
Username="John"
[TrustedSSHHostKeys]
192.168.0.250:22="e6:57:29:74:52:0d:5c:1a:c3:02:97:f8:38:68:cf:9d:52:8f:94:50:53:7c:f0:32:52:d2:6d:85:32:08:f3:87"
[09.05.2022 09:37:06] [TID=001] [INFO ] [John] Mounting drive: 'John'.
[09.05.2022 09:37:06] [TID=001] [INFO ] [John] Establishing SFTP connection to 192.168.0.250 with user 'John'.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Sending local version: "SSH-2.0-IPWorks SSH Client 2020".
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Read remote version string: "SSH-2.0-OpenSSH_9.0".
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Beginning key exchange.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Preparing algorithm negotiation.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Sending local enabled algorithm list.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Reading remote enabled algorithm list.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected key exchange algorithm: "curve25519-sha256".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected server host key algorithm: "ssh-ed25519".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected client encryption algorithm: "aes256-ctr".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected server encryption algorithm: "aes256-ctr".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected client MAC algorithm: "hmac-sha2-512-etm@openssh.com".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected server MAC algorithm: "hmac-sha2-512-etm@openssh.com".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected client compression algorithm: "none".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Selected server compression algorithm: "none".
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Algorithm negotiation complete.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Sending ECDH key exchange initialization request.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Verifying server's Diffie-Hellman key exchange response.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Diffie-Hellman key exchange complete. Calculating key sets.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Sending new key packet to server. Setting client keys.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Received new key packet from server. Setting server keys.
[09.05.2022 09:37:17] [TID=010] [INFO ] [John] Key exchange complete.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Requesting service: "ssh-userauth".
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Service request "ssh-userauth" accepted.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Authenticating user for service "ssh-connection".
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Requesting user's authentication mechanism list from SSH host.
[09.05.2022 09:37:17] [TID=001] [INFO ] [John] Attempting public key authentication.
[09.05.2022 09:37:17] [TID=001] [ERROR] [John] SSH connection failed: Public key authentication failed. The following authentication methods are available for this user: publickey.
[09.05.2022 09:37:17] [TID=001] [WARN ] No drives were successfully mounted.
If someone has the time and will to help, I will answer any further questions (if only I'll actually have an answer) related to the issue. I regret not asking here immediately when everything was fresh, but I haven't done anything with that server further anyway.