Skip to content

Commit 527094f

Browse files
authored
Update README.md
1 parent 2439899 commit 527094f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ useraccount.add_account("admin", "") # create user without password
3030
ssh = Server(useraccount)
3131

3232
@ssh.on_user("command")
33-
def command(channel, command: str, client):
33+
def command(client, command: str):
3434
if command == "hello":
35-
Send(channel, "world!")
35+
Send(client, "world!")
3636

3737
ssh.run(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'private_key.pem'))
3838
```

0 commit comments

Comments
 (0)