mirror of
https://github.com/damp11113/PyserSSH.git
synced 2025-04-28 06:58:12 +00:00
Updated [Thai] Home (markdown)
parent
a01fa280e8
commit
bce873ffae
@ -41,9 +41,9 @@ useraccount.add_account("admin", "")
|
|||||||
ssh = Server(useraccount)
|
ssh = Server(useraccount)
|
||||||
|
|
||||||
@ssh.on_user("command")
|
@ssh.on_user("command")
|
||||||
def command(channel, command: str, client):
|
def command(client, command: str):
|
||||||
if command == "hello":
|
if command == "hello":
|
||||||
Send(channel, "world!")
|
Send(client, "world!")
|
||||||
|
|
||||||
ssh.run(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'private_key.pem'))
|
ssh.run(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'private_key.pem'))
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user