how to connect linux aws ec2 instance to windows local machine at my home using paramiko

2023-11-27 Thread Kashish Naqvi via Python-list
I have a north viriginia ec2 linux instance and a windows machine at my home, how do I connec tthem? import paramiko import time def run_scripts(): # Set your local machine's SSH details local_machine_ip = ' ' username = 'justk' private_key_path = 'C:/Users/justk/.ssh/kashish'

Using Paramiko to submit job on SGE

2022-10-17 Thread Arshi Syed
Hi All, I am trying to run a script-1 on a Linux server using a Paramiko ssh connection and this script-1 calls script-2 which ultimately submits a job using a qsub command, job starts on SGE and I can see it through qstat but everything stops as soon as the script-1 stops. It seems the SSH ses

3rd command never executed in remote machine using paramiko

2016-10-25 Thread mandalmanas786
I have written below code to run 3 command in remote server interactively But when i checked 3rd command never executed and code stuck here is my code def execute(): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('ipaddress',username='user', passwo

Tunneling using paramiko to establish tunnel with lab-router

2011-09-21 Thread Vinay
Hello Friends, I am looking to implement tunneling in python and using "Paramiko" for this.. Sending theTunneling script using Paramiko -Python. It's facing some prob, hangs on running the script..output message it says ".. Missing Handlers". Plz let me know the

Re: Using paramiko rsa key

2009-02-10 Thread loial
On 10 Feb, 17:08, "Martin P. Hellwig" wrote: > loial wrote: > > Can anyone be a little more helpful than Tino? > > > I'll do some freebie hints :-) > What I would do is try first whether key authentication works at all, > for example following a tutorial > likehttp://the.earth.li/~sgtatham/putty

Re: Using paramiko rsa key

2009-02-10 Thread Martin P. Hellwig
loial wrote: Can anyone be a little more helpful than Tino? I'll do some freebie hints :-) What I would do is try first whether key authentication works at all, for example following a tutorial like http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter8.html And if that works translate

Re: Using paramiko rsa key

2009-02-10 Thread loial
Can anyone be a little more helpful than Tino? I have generated the key file as follows on windows and ftp'd the id_rsa.pub file to the .ssh directory on the server and renamed to authorized_keys import paramiko key = paramiko.RSAKey.generate(2048) key.write_private_key_file('Z:/id_rsa') file

Re: Using paramiko rsa key

2009-02-10 Thread Tino Wildenhain
loial wrote: I want to connect via ssh from a python script on windows to an AIX server running openSSH using rsa keys rather than a password. Can anyone provide me with /point me at a simple tutuorial on the steps I need to go though in terms of geneerating the key, installing on the server an

Using paramiko rsa key

2009-02-10 Thread loial
I want to connect via ssh from a python script on windows to an AIX server running openSSH using rsa keys rather than a password. Can anyone provide me with /point me at a simple tutuorial on the steps I need to go though in terms of geneerating the key, installing on the server and connecting in

using paramiko problem? please help me

2008-10-26 Thread sa6113
) event.clear() event.wait(20) the result is : started client ssh negotiation sucessful authentication failed what should I do? please help me , I am new in paramiko. -- View this message in context: http://www.nabble.com/using-paramiko-problem--please-help-me-tp20172937p20172937

which program I need for sftp using paramiko??

2008-10-22 Thread sa6113
which program I have to install for using paramiko for sftp between a two windows machine in local network?? I have installed freeSSHd for server machine but I got an Authentication failed erro when try to connect to server using this code : sock.connect((hostname, port)) t

"Authentication failed" error using paramiko

2008-10-21 Thread sa6113
I am using this code to connect to a windows machine using paramiko, I have installed sshd on the machine and it works properly: sock.connect((hostname, port)) t = paramiko.Transport(sock) event = threading.Event() t.start_client(event) event.wait() if not t.is_active

How to get the output of channel.exec_command(cmd) while using paramiko ?

2008-10-15 Thread sactiw
in Advance. -sactiw -- View this message in context: http://www.nabble.com/How-to-get-the-output-of-channel.exec_command%28cmd%29-while-using-paramiko---tp20005226p20005226.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh problem using paramiko?

2008-10-09 Thread Steve Holden
Diez B. Roggisch wrote: > Steve Holden wrote: > >> Diez B. Roggisch wrote: >>> sa6113 wrote: >>> I couldn't find any good source for download Openssh on the net? Would you please introduce a URL for download that? >>> http://www.vapor.com/amtelnet/ >>> >>> it supports only SSHv1, but I g

Re: ssh problem using paramiko?

2008-10-09 Thread Diez B. Roggisch
Steve Holden wrote: > Diez B. Roggisch wrote: >> sa6113 wrote: >> >>> I couldn't find any good source for download Openssh on the net? >>> Would you please introduce a URL for download that? >> >> http://www.vapor.com/amtelnet/ >> >> it supports only SSHv1, but I guess that's ok. >> > No, you

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
Diez B. Roggisch wrote: > sa6113 wrote: > >> I couldn't find any good source for download Openssh on the net? >> Would you please introduce a URL for download that? > > http://www.vapor.com/amtelnet/ > > it supports only SSHv1, but I guess that's ok. > No, you really don't want to use SSHv1. Am

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
sa6113 wrote: > I couldn't find any good source for download Openssh on the net? > Would you please introduce a URL for download that? > http://www.openssh.org/ would be my first port of call. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC htt

Re: ssh problem using paramiko?

2008-10-08 Thread Diez B. Roggisch
sa6113 wrote: > > I couldn't find any good source for download Openssh on the net? > Would you please introduce a URL for download that? http://www.vapor.com/amtelnet/ it supports only SSHv1, but I guess that's ok. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh problem using paramiko?

2008-10-08 Thread sa6113
gt; >> > Yes, 192.168.1.4 should have an ssh daemon (normally sshd) running and > listening on port 22. It's fairly easy software to install. > > regards > Steve > -- > Steve Holden+1 571 484 6266 +1 800 494 3119 > Holden Web LLC http://www.ho

Re: ssh problem using paramiko?

2008-10-07 Thread Steve Holden
sa6113 wrote: > I use this code : > > > import paramiko > import socket > > hostname = "192.168.1.4" > username = "test" > port = 22 > password = ''123456" > > # now connect > try: > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.connect((hostname, port)) > except Excep

Re: ssh problem using paramiko?

2008-10-07 Thread Johny
this error : > sock.connect((hostname, port)) > File "", line 1 , in connect > error:(10061 ,'Connection refused') > --- > what is the problem? > I have a computer with this Ip and username , password in my network. > Do I have to install ssh or somthing else i

ssh problem using paramiko?

2008-10-07 Thread sa6113
computer with this Ip and username , password in my network. Do I have to install ssh or somthing else in that computer(server) or run any script? -- View this message in context: http://www.nabble.com/ssh-problem-using-paramiko--tp19857268p19857268.html Sent from the Python - python-list maili

Using Paramiko

2005-04-19 Thread Greg Lindstrom
Can anyone point me to a "how-to" on Paramiko? I need to use sftp for file transfer, have installed Paramiko and have a connection (that was pretty easy, actually), but cannot find documentation on how to transfer a file (I have demo_simple.py but can't figure it out). Perhaps I missed a sect