diff options
author | Joel Diaz <jdiaz@redhat.com> | 2016-01-12 16:50:43 -0500 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2016-01-12 16:50:43 -0500 |
commit | c5f6db5ddd431f969aa3e2216cc7e880c8405d7b (patch) | |
tree | f8f39796fbff67259e1b785d76cbd0965ba2e666 | |
parent | 46b9ee3a4bd74a2dd815c0c465bb17c85db90d17 (diff) | |
download | openshift-c5f6db5ddd431f969aa3e2216cc7e880c8405d7b.tar.gz openshift-c5f6db5ddd431f969aa3e2216cc7e880c8405d7b.tar.bz2 openshift-c5f6db5ddd431f969aa3e2216cc7e880c8405d7b.tar.xz openshift-c5f6db5ddd431f969aa3e2216cc7e880c8405d7b.zip |
Add -A parameter to forward ssh agent
-rwxr-xr-x | bin/ossh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |