Open basu45 opened 1 week ago
Can anyone please help here
Hi @tgauth can you please look at this And help me?
Have you tried what is suggested on this StackOverflow: https://stackoverflow.com/questions/58063024/can-i-call-channel-invoke-shell-without-calling-channel-get-pty-beforehand
Can you try adding a -T
parameter?
Hi @maertendMSFT , 1.We are using the paramiko libraries invoke_shell() function which internally calls the get_pty() function however if we comment that in library itself on client.py of paramiko then it does not give any output
By any chance does the. https://github.com/PowerShell/Win32-OpenSSH/issues/1057 causing issues
Prerequisites
Steps to reproduce
The issue is when we are using paramiko to connect to windows 2019 vm with invoke_shell() we are getting a lot of residue/garbage output. The output is similar to (https://stackoverflow.com/questions/61381631/read-buffer-data-continuously-running-on-remote-windows-command-prompt?noredirect=1&IQ=1)
And also the output is repeated multiple times.
Checked with bitvise ssh server it works fine with bitvise server
Tried with different version of openssh but same issue.
Any suggestions to get the clean output and non repeated/duplicate output
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
Visuals
No response