-
Notifications
You must be signed in to change notification settings - Fork 138
Get verbose output from put/get ? #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The lib will read stderr on some occasions, passing it as argument to raised I'm trying to find a way for paramiko to log the stderr it gets, but there doesn't seem to be anything built in. |
So from the docs explaining the paramiko.client.SSHClient Reads client = SSHClient()
client.load_system_host_keys()
client.connect('ssh.example.com')
stdin, stdout, stderr = client.exec_command('ls -l') I'm wondering if to solve this issue is it a simple fix of doing def put and get
...
- self.channel.exec_command(scp_command +
- self.sanitize(asbytes(remote_path)))
+ stdin, stdout, stderr = self.channel.exec_command(scp_command +
+ self.sanitize(asbytes(remote_path)))
... If you think that is an appropriate solution then let me know and I can make a pull request! |
8000
tr>
This will give you pseudo-files you can read from instead of reading from the channel directly, but I'm no sure how it fixes the problem. PR welcome if you want to take a crack at it. |
@remram44 yeah I see what you are saying. The pseudo files can only be read after the |
No that is not the case. I'm saying there's no difference doing |
Current put() method executes "scp -t " on remote server and receives file then being sent via chan.sendall() over the channel.
I'm getting intermittent failures and I'd like to get verbose output from scp to help trace issue. I can manually change scp.py to execute "scp -v -t " however no idea where the stdout is being sent to ?
Any ideas ?
The text was updated successfully, but these errors were encountered: