瀏覽代碼

add warning about cleartext password into PuttySSHVendor

Filipp Frizzy 7 年之前
父節點
當前提交
1d5eecca5b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      dulwich/client.py

+ 5 - 0
dulwich/client.py

@@ -1154,6 +1154,11 @@ class PuttySSHVendor(SSHVendor):
             args = ['putty', '-ssh']
 
         if password:
+            import warnings
+            warnings.warn(
+                "Putty show you password in clear text "
+                "in the list of arguments, so use ParamikoSSHVendor "
+                "instead if you care about security")
             args.extend(['-pw', str(password)])
 
         if port: