Skip to main content
0 votes
1 answer
82 views

I'm trying to implement a very basic sftp server in python with asyncssh to be used during a unittest. I want to use a custom path to set the root of the sftp server and it would be better to set a ...
Manuel Díaz Pozo's user avatar
1 vote
0 answers
166 views

I'm struggling with asyncssh again trying to kill a process started as root: import asyncio import asyncssh async def main() -> None: async with asyncssh.connect("localhost", ...
frans's user avatar
  • 9,988
1 vote
0 answers
158 views

I am trying to move my codebase over to asyncio and aiohttp, aioftp, etc. I've been led to believe that the clients should be reused for multiple requests instead of opening a new one each time. For ...
S. B.'s user avatar
  • 83
0 votes
1 answer
131 views

ChatGPT is running in circles now and it keeps failing at the task: having multiple boxes monitoring in real time the output of a remote python script. So far, here is the notebook code: import ...
Myoch's user avatar
  • 875
0 votes
1 answer
2k views

I'm trying to establish an interactive SSH shell using asyncssh. So far I have the following code: import asyncio, asyncssh, sys async def run_client(): async with asyncssh.connect( HOST, ...
johnc's user avatar
  • 315
1 vote
1 answer
94 views

I just isolated a strange behavior I've observed, but now I'm out of ideas. My script asynchronously iterates over the stdout stream of a process which has been spawned via ssh (asyncssh) in a kind of ...
frans's user avatar
  • 9,988
1 vote
0 answers
317 views

I have the following snippet starting a long-going process locally via ssh: from asyncio import gather, run import asyncssh async def listen(stream): async for line in stream: print(line) ...
frans's user avatar
  • 9,988
0 votes
0 answers
869 views

I am all new to asynchronous programing in Python. I am enhancing part of my code to work asynchronously where the rest of the code works synchronously. The part I am enhancing asynchronously is to ...
Tim's user avatar
  • 11
1 vote
0 answers
437 views

I have files within directories that needs to be transferred from one SFTP server to another. Common ways I have found are to download the files from server 1 and then transfer them to server 2. My ...
Safiul Alam's user avatar
1 vote
0 answers
207 views

I'm using Python's AsyncSSH library to download files from an SFTP server and upload them to Google Cloud Storage using Cloud Functions. The code works fine when the number of files and directories is ...
Safiul Alam's user avatar
0 votes
1 answer
669 views

I have successfully executed su -c whoami - using paramiko like such: def amiroot(ssh: paramiko.client.SSHClient, root_pass: str) -> bool: session = ssh.get_transport().open_session() ...
pepoluan's user avatar
  • 6,961
0 votes
1 answer
436 views

I am writing a small test script that exercises asyncssh facilities. One of the test scenarios is running ping localhost process and then sending CTRL+\ to report intermediary summary. However I have ...
nndhawan's user avatar
  • 627
0 votes
0 answers
727 views

I know I can send b'\x03' to send CTRL + C to Linux but I don't know the code for CTRL + \. What resource covers CTRL + <key>? By way of background, I am writing a small test script that ...
nndhawan's user avatar
  • 627
3 votes
1 answer
688 views

My application needs remote control over SSH. I wish to use this example: https://asyncssh.readthedocs.io/en/latest/#simple-server-with-input The original app is rather big, using GPIO and 600lines of ...
user105939's user avatar
1 vote
0 answers
2k views

I created a simple asyncssh app that starts a process that runs continuously. I would like to get all stdout from the app as it runs but for some reason it ends part ways. I'm not sure if this means ...
LeanMan's user avatar
  • 534

15 30 50 per page