From 15aec3094fa97f3c5fd690ed6bbedccfc8918013 Mon Sep 17 00:00:00 2001 From: simpgeek Date: Fri, 27 May 2016 10:22:58 -0400 Subject: [PATCH] Update ssh_config.py Allow user to be specified as root and still create global config file, as opposed to `/.ssh/config` --- library/ssh_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssh_config.py b/library/ssh_config.py index 7ff3a3b..7ccc3dc 100755 --- a/library/ssh_config.py +++ b/library/ssh_config.py @@ -730,7 +730,7 @@ def main(): hosts_removed = [] hosts_added = [] - if user is None: + if user is None or user == "root": config_file = '/etc/ssh/ssh_config' user = 'root' else: