Get settings (login/password)
Gets connection settings with login and password authentication
- Parameters
- Advanced call ?
Function GetSettingsLoginPassword(Val Host, Val Port, Val Login, Val Password = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Host | --host | String | ✔ | SSH host |
| Port | --port | Number | ✔ | SSH port |
| Login | --user | String | ✔ | SSH username |
| Password | --pass | String | ✖ | SSH user password |
Returns
Structure Of KeyAndValue - Connection configuration
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
Password = "12we...";
Result = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
- Bash
- CMD/Bat
oint sftp GetSettingsLoginPassword \
--host "172.33.0.13" \
--port "2222" \
--user "bayselonarrend" \
--pass "***"
oint sftp GetSettingsLoginPassword ^
--host "172.33.0.13" ^
--port "2222" ^
--user "bayselonarrend" ^
--pass "***"
Result
{
"auth_type": "password",
"host": "172.33.0.13",
"port": 2222,
"username": "bayselonarrend",
"password": "***"
}