From c5f6db5ddd431f969aa3e2216cc7e880c8405d7b Mon Sep 17 00:00:00 2001 From: Joel Diaz Date: Tue, 12 Jan 2016 16:50:43 -0500 Subject: Add -A parameter to forward ssh agent --- bin/ossh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/ossh b/bin/ossh index 6519e4e08..5e2506638 100755 --- a/bin/ossh +++ b/bin/ossh @@ -72,6 +72,8 @@ class Ossh(object): parser.add_argument('-o', '--ssh_opts', action='store', help='options to pass to SSH.\n \ "-oForwardX11=yes,TCPKeepAlive=yes"') + parser.add_argument('-A', default=False, action="store_true", + help='Forward authentication agent') parser.add_argument('host', nargs='?', default='') self.args = parser.parse_args() @@ -177,6 +179,9 @@ class Ossh(object): if self.user: ssh_args.append('-l%s' % self.user) + if self.args.A: + ssh_args.append('-A') + if self.args.verbose: ssh_args.append('-vvv') -- cgit v1.2.1