I am trying to implement the NIOSSHClient example into my iOS-app. At the moment, the connection with my own credentials is working and now I want to run commands.
For that, I replaced line 54 in simpleCLIParser with
return Result(commandString: "ls" ,target: URL(string: "ssh://mydomain.com")!, listen: nil)
but I don't get any answer in the terminal or anywhere else.
If I send "ls123", I see the error in terminal that the command doesn't exists, but I have no idea where this is generated so I can catch the answer, if the command is correct.
Can anybody give me a hint, how to receive the answer from the executed command so I can save and display it in other classes? I want to run multiple commands before closing the connection.