From ae35e707b6aa5c41c804cbcd350fd7145c4f56ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vorburger=20=E2=9B=91=EF=B8=8F?= Date: Tue, 17 Sep 2019 00:35:26 +0200 Subject: [PATCH] add 'sshd -eddd' Troubleshooting tip --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00da18a..8601ae1 100644 --- a/README.md +++ b/README.md @@ -2042,7 +2042,10 @@ scd apdu 00 44 00 00 - If you receive the error, `Permission denied (publickey)`, increase ssh verbosity with the `-v` flag and ensure the public key from the card is being offered: `Offering public key: RSA SHA256:abcdefg... cardno:00060123456`. If it is, ensure you are connecting as the right user on the target system, rather than as the user on the local system. Otherwise, be sure `IdentitiesOnly` is not [enabled](https://github.com/FiloSottile/whosthere#how-do-i-stop-it) for this host. -- If SSH authentication stil fails - add up to 3 `-v` flags to increase verbosity. +- If SSH authentication still fails - add up to 3 `-v` flags to the `ssh` client to increase verbosity. + +- If it still fails, it may be useful to stop the background `sshd` daemon process service on the server (e.g. using `sudo systemctl stop sshd`) and instead start it in the foreground with extensive debugging output, using `sshd -eddd`. Note that (quote `man sshd`) _The server also will not fork and will only process one connection._, and therefore has to be re-started after every `ssh` test. + # Links