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
|
@ -175,8 +175,9 @@ to SSH server at '~a'")
|
||||||
(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 New Issue