diff --git a/tobiko/shell/ssh/config.py b/tobiko/shell/ssh/config.py index 1c08d13f1..cb887a655 100644 --- a/tobiko/shell/ssh/config.py +++ b/tobiko/shell/ssh/config.py @@ -34,8 +34,7 @@ OPTIONS = [ default=None, help=('Default SSH username')), cfg.ListOpt('config_files', - default=['/etc/ssh/ssh_config', '~/.ssh/config', - './ssh_config'], + default=['ssh_config'], help="Default user SSH configuration files"), cfg.StrOpt('key_file', default='~/.ssh/id_rsa', diff --git a/tobiko/tests/unit/shell/test_ssh.py b/tobiko/tests/unit/shell/test_ssh.py index 52440d75c..511ef3b33 100644 --- a/tobiko/tests/unit/shell/test_ssh.py +++ b/tobiko/tests/unit/shell/test_ssh.py @@ -58,6 +58,7 @@ class SSHClientFixtureTest(unit.TobikoUnitTest): ssh_config = paramiko.SSHConfig() for ssh_config_file in CONF.tobiko.ssh.config_files: + ssh_config_file = tobiko.tobiko_config_path(ssh_config_file) if os.path.exists(ssh_config_file): with open(ssh_config_file) as f: ssh_config.parse(f)