--- sidebar_position: 8 description: Get settings (via agent) and other functions to work with SSH in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, SSH] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # 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
```bsl title="1C:Enterprise/OneScript code example" Host = "172.33.0.13"; Port = "2222"; Login = "bayselonarrend"; Result = OPI_SSH.GetSettingsViaAgent(Host, Port, Login); ``` ```bash oint ssh GetSettingsViaAgent \ --host "172.33.0.13" \ --port "2222" \ --user "bayselonarrend" ``` ```batch oint ssh GetSettingsViaAgent ^ --host "172.33.0.13" ^ --port "2222" ^ --user "bayselonarrend" ``` ```json title="Result" { "auth_type": "agent", "host": "172.33.0.13", "port": 2222, "username": "bayselonarrend" } ```