From 53b9ee619d8fde1c841f2a3ad63d863d87bfc3b9 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Sun, 22 Oct 2006 19:07:57 +0000 Subject: [PATCH] Deny SSH authentication --- src/local.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/local.c b/src/local.c index e484bcf..c2cb13b 100644 --- a/src/local.c +++ b/src/local.c @@ -42,6 +42,11 @@ int pusb_local_login(t_pusb_options *opts, const char *user, from += strlen("/dev/"); } log_debug("Authentication request from tty %s\n", from); + if (!strcmp(from, "ssh")) + { + log_debug("SSH Authentication, aborting.\n"); + return (0); + } strncpy(utsearch.ut_line, from, sizeof(utsearch.ut_line)); setutent(); utent = getutline(&utsearch);