summaryrefslogtreecommitdiffstats
path: root/bin/ossh
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2016-01-13 12:17:42 -0500
committerJoel Diaz <jdiaz@redhat.com>2016-01-13 12:17:42 -0500
commit8adda1299d33a8fc14772c4551d228cc0240c91a (patch)
tree56efdc063583e9ca384eaca53135abcdf70cddff /bin/ossh
parent674e812aaac80c0060d57761a3f43762581b5cfe (diff)
parentc5f6db5ddd431f969aa3e2216cc7e880c8405d7b (diff)
downloadopenshift-8adda1299d33a8fc14772c4551d228cc0240c91a.tar.gz
openshift-8adda1299d33a8fc14772c4551d228cc0240c91a.tar.bz2
openshift-8adda1299d33a8fc14772c4551d228cc0240c91a.tar.xz
openshift-8adda1299d33a8fc14772c4551d228cc0240c91a.zip
Merge pull request #1178 from joelddiaz/ssh-forward
Add -A parameter to forward ssh agent
Diffstat (limited to 'bin/ossh')
-rwxr-xr-xbin/ossh5
1 files changed, 5 insertions, 0 deletions
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')