Commit 8b51e11f authored by ibuler's avatar ibuler

[Update] 修改sftp

parent 3484b3ec
...@@ -94,7 +94,7 @@ class SFTPServer(paramiko.SFTPServerInterface): ...@@ -94,7 +94,7 @@ class SFTPServer(paramiko.SFTPServerInterface):
return [] return []
return [ return [
su for su in asset.system_users_granted su for su in asset.system_users_granted
if su.protocol == "ssh" and su.login_mode != 'auto' if su.protocol == "ssh" and su.login_mode == 'auto'
] ]
def su_in_asset(self, su, host): def su_in_asset(self, su, host):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment