the one python book

2007-08-04 Thread dhr
newbie question: Is there a 'K&R" type of Python book? The book that you'd better have on your shelf if you are going into Python? -- http://mail.python.org/mailman/listinfo/python-list

Q: paramiko/SSH/ how to get a remote host_key

2008-01-21 Thread DHR
I'm trying to run the simpliest example form paramiko readme(Homepage: http://www.lag.net/paramiko/), and cannot find out how to get the remote SSH server host_key. This is the code. It is supposed to connect to a remote SSH host and execute an 'ls' command: import paramiko, base64 key = parami

Re: How to use py2exe ...

2008-01-21 Thread DHR
Here is how I am creating my win32 exe with py2exe: 1. create a setup.py file with the following: from distutils.core import setup import py2exe #setup(console=['main_script.py']) setup(windows=['main_script.py'] ) 2. run the following command from console: 'python setup.py py2exe' Hope this hel

Re: Q: paramiko/SSH/ how to get a remote host_key

2008-01-21 Thread DHR
ot trust this host, hit Cancel to abandon the connection. ''' If I get it correctly, Putty is using such a command to recieve the host_key the first time it connects to a remote SSH server. Then it stores it into the registry. The question is how can I do it from Python? G

Re: Q: paramiko/SSH/ how to get a remote host_key

2008-01-21 Thread DHR
s') stdin, stdout, stderr = client.exec_command('ls') for line in stdout: print '... ' + line.strip('\n') client.close() On Jan 21, 3:10 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/21, DHR <[EMAIL PROTECTED]>: > > &g