Skip to main content

Get settings (via agent)

Gets connection settings with SSH Agent authentication

Function GetSettingsViaAgent(Val Host, Val Port, Val Login) Export

ParameterCLI optionTypeRequiredDescription
Host--hostStringSSH host
Port--portNumberSSH port
Login--userStringSSH username
Returns

Structure Of KeyAndValue - Connection configuration

1C:Enterprise/OneScript code example
Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
Result = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
oint sftp GetSettingsViaAgent \
--host "172.33.0.34" \
--port "2222" \
--user "bayselonarrend"
Result
{
"auth_type": "agent",
"host": "172.33.0.13",
"port": 2222,
"username": "bayselonarrend"
}