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)
|
||||
(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~%")
|
||||
|
Loading…
Reference in New Issue
Block a user