2
0
Эх сурвалжийг харах

add warning about cleartext password into PuttySSHVendor

Filipp Frizzy 7 жил өмнө
parent
commit
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: