Get settings (keyboard-interactive))
Retrieves connection settings for keyboard-interactive authentication
- Parameters
- Advanced call ?
Function GetSettingsKI(Val Host, Val Port, Val Login, Val InputOrder) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Host | --host | String | ✔ | SSH host |
| Port | --port | Number | ✔ | SSH port |
| Login | --user | String | ✔ | SSH username |
| InputOrder | --prompts | Array Of String | ✔ | Array of responses to server questions |
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...";
AnswersArray = New Array;
AnswersArray.Add("yes");
AnswersArray.Add(Password);
Result = OPI_SFTP.GetSettingsKI(Host, Port, Login, AnswersArray);
- Bash
- CMD/Bat
oint sftp GetSettingsKI \
--host "172.33.0.34" \
--port "2222" \
--user "bayselonarrend" \
--prompts "['yes','12we3456!2154']"
oint sftp GetSettingsKI ^
--host "172.33.0.34" ^
--port "2222" ^
--user "bayselonarrend" ^
--prompts "['yes','12we3456!2154']"
Result
{
"auth_type": "keyboard_interactive",
"host": "172.33.0.13",
"port": 2222,
"username": "bayselonarrend",
"keyboard_responses": [
"yes",
"***"
]
}