summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 228afecf4..6537ad9a2 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.338 2010/05/16 12:55:51 markus Exp $ */ 1/* $OpenBSD: ssh.c,v 1.339 2010/06/25 23:10:30 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -829,6 +829,13 @@ main(int ac, char **av)
829 ssh_login(&sensitive_data, host, (struct sockaddr *)&hostaddr, 829 ssh_login(&sensitive_data, host, (struct sockaddr *)&hostaddr,
830 pw, timeout_ms); 830 pw, timeout_ms);
831 831
832 if (packet_connection_is_on_socket()) {
833 verbose("Authenticated to %s ([%s]:%d).", host,
834 get_remote_ipaddr(), get_remote_port());
835 } else {
836 verbose("Authenticated to %s (via proxy).", host);
837 }
838
832 /* We no longer need the private host keys. Clear them now. */ 839 /* We no longer need the private host keys. Clear them now. */
833 if (sensitive_data.nkeys != 0) { 840 if (sensitive_data.nkeys != 0) {
834 for (i = 0; i < sensitive_data.nkeys; i++) { 841 for (i = 0; i < sensitive_data.nkeys; i++) {