Get settings (via agent)
Gets connection settings with SSH Agent authentication
Function GetSettingsViaAgent(Val Host, Val Port, Val Login) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Host | --host | String | ✔ | SSH host |
| Port | --port | Number | ✔ | SSH port |
| Login | --user | String | ✔ | SSH username |
Returns: Structure Of KeyAndValue - Connection configuration
1C:Enterprise/OneScript code example
Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
Result = OPI_SSH.GetSettingsViaAgent(Host, Port, Login);
- Bash
- CMD/Bat
oint ssh GetSettingsViaAgent \
--host "172.33.0.13" \
--port "2222" \
--user "bayselonarrend"
oint ssh GetSettingsViaAgent ^
--host "172.33.0.13" ^
--port "2222" ^
--user "bayselonarrend"
Result
{
"auth_type": "agent",
"host": "172.33.0.13",
"port": 2222,
"username": "bayselonarrend"
}