Use SSH user name configured for a given target:
When a user is configured for the targeted host name, use it for SSH authentification instead of the name of current user logged in. * Modify Remote#user_name to use configured user name.
This commit is contained in:
1 parent
768a6755de
commit
85a47df547
5 files changed
+50
-3
No files matched your search
@@ -19,7 +19,7 @@ module Producer
|
||||
end
|
||||
|
||||
def user_name
|
||||
Etc.getlogin
|
||||
config[:user] || Etc.getlogin
|
||||
end
|
||||
|
||||
def fs
|
||||
|
||||
Reference in new issue
Block a user