Update README.md

This commit is contained in:
dharm pimsen 2024-03-30 23:26:26 +07:00 committed by GitHub
parent 24398998b8
commit 527094f2bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,9 +30,9 @@ useraccount.add_account("admin", "") # create user without password
ssh = Server(useraccount)
@ssh.on_user("command")
def command(channel, command: str, client):
def command(client, command: str):
if command == "hello":
Send(channel, "world!")
Send(client, "world!")
ssh.run(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'private_key.pem'))
```