Hello, I've installed Paramiko on my PC with Python 2.7.
My code is: import paramiko import os ssh = paramiko.SSHClient() ssh.connect('10.10.10.10', username='ufuk', password='ufuk') But I'm getting this error: >>> Traceback (most recent call last): File "C:/Users/eufuesk/Desktop/paramiko.py", line 1, in <module> import paramiko File "C:/Users/eufuesk/Desktop\paramiko.py", line 4, in <module> ssh = paramiko.SSHClient() AttributeError: 'module' object has no attribute 'SSHClient' >>> Anybody familiar with paramiko? 2012/12/20 Prasad, Ramit <ramit.pra...@jpmorgan.com> > Ufuk Eskici wrote: > > Hello, > > > > I run this command and opens putty: > > > > import os > > import subprocess > > command = '"c:\Program Files\Putty\putty.exe" -ssh > ufukeskici@10.10.10.10 -pw test > > subprocess.Popen(command) > > > > But then I want to input new commands to this Putty new window. How can > I do it? > > > > Do you need to control Putty or just SSH to another computer? > If all you need to SSH then I would recommend using a 3rd > party module such as Fabric (which relies on Paramiko). Those modules > will simply SSH significantly. They are Python 2.x but you should > be able to use Paramiko in 3.x except for SFTP. This link might help > to install Paramiko if you are using Python 3. > https://github.com/paramiko/paramiko/issues/16 > > If you need to control Putty specifically then I cannot help. > > > Ramit > > > This email is confidential and subject to important disclaimers and > conditions including on offers for the purchase or sale of > securities, accuracy and completeness of information, viruses, > confidentiality, legal privilege, and legal entity disclaimers, > available at http://www.jpmorgan.com/pages/disclosures/email. >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor