it is for use of sftp through pysftp. > On Dec 22, 2017, at 2:04 PM, mwall <[email protected]> wrote: > > On Friday, December 22, 2017 at 4:47:04 PM UTC-5, Joe Percival wrote: > I am writing an extension that requires login credentials for a remote > machine. What is the best mechanism for doing this that does not require > hard coding in the python script? > > if it is ssh-related (e.g., scp, rsync) then use PKI (a public/private key > pair). > > if you must provide username/password, then put those in a configuration file > then have the python code read the configuration file. > > if you are really paranoid, have the python read the file each time it needs > to authenticate (so that the values are not retained in memory). but if > you're that paranoid, there are probably plenty of other things than a > username/password that keep you up... > > m > > -- > You received this message because you are subscribed to a topic in the Google > Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/uFsf5r_gEYw/unsubscribe > <https://groups.google.com/d/topic/weewx-user/uFsf5r_gEYw/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>.
-- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
