ssh: Also print the user when authentication fails.

* guix/ssh.scm (open-ssh-session): Show user in error message.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Attila Lendvai 2023-07-29 14:02:37 +02:00 committed by Ludovic Courtès
parent 2274d71f94
commit e318b62df3
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -175,8 +175,9 @@ to SSH server at '~a'")
(disconnect! session)
(raise (condition
(&message
(message (format #f (G_ "SSH authentication failed for '~a': ~a~%")
host (get-error session)))))))))))
(message (format #f (G_ "SSH authentication failed for '~a@~a': ~a~%")
(session-get session 'user) host
(get-error session)))))))))))
(x
;; Connection failed or timeout expired.
(raise (formatted-message (G_ "SSH connection to '~a' failed: ~a~%")