diff --git a/dvc/config.py b/dvc/config.py index 87311842f..c7925aec2 100644 --- a/dvc/config.py +++ b/dvc/config.py @@ -253,6 +253,7 @@ class Config(object): # pylint: disable=too-many-instance-attributes SECTION_REMOTE_TIMEOUT = "timeout" SECTION_REMOTE_PASSWORD = "password" SECTION_REMOTE_ASK_PASSWORD = "ask_password" + SECTION_REMOTE_GSS_AUTH = "gss_auth" SECTION_REMOTE_NO_TRAVERSE = "no_traverse" SECTION_REMOTE_SCHEMA = { SECTION_REMOTE_URL: str, @@ -273,6 +274,7 @@ class Config(object): # pylint: disable=too-many-instance-attributes Optional(SECTION_REMOTE_TIMEOUT): Use(int), Optional(SECTION_REMOTE_PASSWORD): str, Optional(SECTION_REMOTE_ASK_PASSWORD): BOOL_SCHEMA, + Optional(SECTION_REMOTE_GSS_AUTH): BOOL_SCHEMA, Optional(SECTION_AZURE_CONNECTION_STRING): str, Optional(SECTION_OSS_ACCESS_KEY_ID): str, Optional(SECTION_OSS_ACCESS_KEY_SECRET): str, diff --git a/dvc/remote/ssh/__init__.py b/dvc/remote/ssh/__init__.py index 086a2fd71..d6f034fd4 100644 --- a/dvc/remote/ssh/__init__.py +++ b/dvc/remote/ssh/__init__.py @@ -87,6 +87,7 @@ class RemoteSSH(RemoteBASE): self.ask_password = config.get( Config.SECTION_REMOTE_ASK_PASSWORD, False ) + self.gss_auth = config.get(Config.SECTION_REMOTE_GSS_AUTH, False) @staticmethod def ssh_config_filename(): @@ -145,6 +146,7 @@ class RemoteSSH(RemoteBASE): key_filename=self.keyfile, timeout=self.timeout, password=self.password, + gss_auth=self.gss_auth, ) def exists(self, path_info):