зеркало из https://github.com/Azure/sonic-openssh.git
upstream commit
Add user@host prefix to client's "Permisison denied" messages, useful in particular when using "stacked" connections where it's not clear which host is denying. bz#2720, ok djm@ markus@ Upstream-ID: de88e1e9dcb050c98e85377482d1287a9fe0d2be
This commit is contained in:
Родитель
c948030d54
Коммит
4626e39c70
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sshconnect2.c,v 1.263 2017/05/31 07:00:13 markus Exp $ */
|
/* $OpenBSD: sshconnect2.c,v 1.264 2017/06/14 00:31:38 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
* Copyright (c) 2008 Damien Miller. All rights reserved.
|
* Copyright (c) 2008 Damien Miller. All rights reserved.
|
||||||
|
@ -469,7 +469,8 @@ userauth(Authctxt *authctxt, char *authlist)
|
||||||
for (;;) {
|
for (;;) {
|
||||||
Authmethod *method = authmethod_get(authlist);
|
Authmethod *method = authmethod_get(authlist);
|
||||||
if (method == NULL)
|
if (method == NULL)
|
||||||
fatal("Permission denied (%s).", authlist);
|
fatal("%s@%s: Permission denied (%s).",
|
||||||
|
authctxt->server_user, authctxt->host, authlist);
|
||||||
authctxt->method = method;
|
authctxt->method = method;
|
||||||
|
|
||||||
/* reset the per method handler */
|
/* reset the per method handler */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче