diff --git a/tobiko/shell/ssh/_client.py b/tobiko/shell/ssh/_client.py index acef12607..952cae3a6 100644 --- a/tobiko/shell/ssh/_client.py +++ b/tobiko/shell/ssh/_client.py @@ -75,7 +75,10 @@ def positive_int(value): def get_key_filename(value): if isinstance(value, six.string_types): value = [value] - return [os.path.realpath(os.path.expanduser(v)) for v in value] + key_filename = [tobiko.tobiko_config_path(v) for v in value] + return [f + for f in key_filename + if os.path.isfile(f)] SSH_CONNECT_PARAMETERS = {