Hi everyone, i just joined the list and being newbie I have 2 questions.
1) I am running a never ending script that every 5 seconds make a SSH
connection to different hosts. All work (almost) excellent but sometimes the
script stops showing me this error :
No handlers cou
Here's a complete openssh compatible scp implementation. Yes, scp is a
pain, it's not a standard nor part of the ssh spec, and different
implementations aren't expected to work together in all cases.
-jim
# scp.py
# Copyright (C) 2008 James Bardin
#
# This program is free software; you can redis
Sigh... It seems that scp on some platforms does indeed return smth
different than binary 0, 1 or 2 as reply. In my case ssh in question was
openssh-server-3.9p1-8.RHEL4.9 on x64 hardware, where scp returned empty
string after 'scp -t -v' command even though scp continued operation
normally (
james bardin wrote:
Looks like you've got the gist of it. You could also use the
chn.makefile() method to make it work like SSHClient.exec_command()
(from client.py)
Looks like not everything was done correctly: the code I posted before
did not read scp replies working in sink mode (see:
http