diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-09-18 16:40:21 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-09-18 16:40:21 +0200 |
commit | 3707680021de040472cd792131a8df42902d08ba (patch) | |
tree | b5f48e3d7141256a0595b901b8f6da9a59d080ca /ssh-agent-filter.C | |
parent | f6ae7a38cfec1d4f8abc6d5c13999682efcfca03 (diff) | |
download | ssh-agent-filter-3707680021de040472cd792131a8df42902d08ba.tar.gz |
also print out SSH_AUTH_SOCK in debug mode
Diffstat (limited to 'ssh-agent-filter.C')
-rw-r--r-- | ssh-agent-filter.C | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C index a5ff38e..f5f9f08 100644 --- a/ssh-agent-filter.C +++ b/ssh-agent-filter.C @@ -362,6 +362,9 @@ int main (int const argc, char const * const * const argv) { dup2(devnull, 1); dup2(devnull, 2); close(devnull); + } else { + std::cout << "copy this to another terminal:" << std::endl; + std::cout << "SSH_AUTH_SOCK='" << path.native() << "'; export SSH_AUTH_SOCK;" << std::endl; } signal(SIGINT, sighandler); |