[paramiko] Problem using channels
Heine Andersen
heine.andersen at gmail.com
Fri Dec 7 23:57:04 PST 2007
Thx for the suggestions, using readline doesn't solve the problem. The
reason for not parsing
the password as en argument, is that it would be revealed if another
user do a ps -ef.
But a hack could be to transfer it using sftp, then again if something
goes wrong,
I have all these small textfiles containing passwords floating around
in the users homedirs :(
On Dec 8, 2007 5:04 AM, james bardin <jbardin at bu.edu> wrote:
> I think that when you send the password to the next host, the program needs
> to get an EOF so the read() can finish and continue.
> I'm not really sure how to handle this though, as I don't think that
> readlines() will stop blocking either.
> For example the following won't finish until you press Ctrl+D
> #!/usr/bin/python
> import sys
> p = sys.stdin.readlines()
> print p
>
> An easy way out would be to allow the program to take the password as an
> optional argument, and pass everything to the next host in one string.
>
> -jim
>
More information about the paramiko
mailing list