Skip to content

Commit c140e49

Browse files
committed
Add an example to readme
1 parent c7434a4 commit c140e49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ By default, the quiet mode is disabled. You can enable quiet mode using `enableQ
111111
Ssh::create('user', 'host')->enableQuietMode();
112112
```
113113

114+
### Disable Password Authentication
115+
116+
By default, the password authentication is enabled. You can disable password authentication using `disablePasswordAuthentication`.
117+
118+
```php
119+
Ssh::create('user', 'host')->disablePasswordAuthentication();
120+
```
121+
114122
### Uploading & downloading files and directories
115123

116124
You can upload files & directories to a host using:

0 commit comments

Comments
 (0)