Explorar el Código

add warning about cleartext password into PuttySSHVendor

Filipp Frizzy hace 7 años
padre
commit
1d5eecca5b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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: