'Spawns a custom bash shell process';A=process;B=os.environ.copy();B['TERM']='xterm-256color';C=awaitasyncio.create_subprocess_exec(SHELL,'-i',stdin=asyncio.subprocess.PIPE,stdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.PIPE,env=B)
asyncdefD():
whileTrue:
B=awaitC.stdout.read(1)
ifnotB:break
A.stdout.write(B)
asyncdefE():
whileTrue:
B=awaitA.stdin.read(1)
ifnotB:break
C.stdin.write(B)
awaitasyncio.gather(D(),E())
asyncdefstart_ssh_server():'Starts the AsyncSSH server with Bash';awaitasyncssh.create_server(lambda:CustomSSHServer(),host=HOST,port=PORT,server_host_keys=['ssh_host_key'],process_factory=custom_bash_process);print(f"SSH server running on {HOST}:{PORT}");awaitasyncio.Future()