mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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:
parent
2274d71f94
commit
e318b62df3
1 changed files with 3 additions and 2 deletions
|
@ -175,8 +175,9 @@ (define* (open-ssh-session host #:key user port identity
|
||||||
(disconnect! session)
|
(disconnect! session)
|
||||||
(raise (condition
|
(raise (condition
|
||||||
(&message
|
(&message
|
||||||
(message (format #f (G_ "SSH authentication failed for '~a': ~a~%")
|
(message (format #f (G_ "SSH authentication failed for '~a@~a': ~a~%")
|
||||||
host (get-error session)))))))))))
|
(session-get session 'user) host
|
||||||
|
(get-error session)))))))))))
|
||||||
(x
|
(x
|
||||||
;; Connection failed or timeout expired.
|
;; Connection failed or timeout expired.
|
||||||
(raise (formatted-message (G_ "SSH connection to '~a' failed: ~a~%")
|
(raise (formatted-message (G_ "SSH connection to '~a' failed: ~a~%")
|
||||||
|
|
Loading…
Reference in a new issue