2025-09-23 10:13:09 +03:00
---
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
<br/>
2025-09-29 09:32:14 +03:00
```bsl title="1C:Enterprise/OneScript code example"
Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
SSHSettings = OPI_SSH.GetSettingsViaAgent(Host, Port, Login);
```
2025-09-23 10:13:09 +03:00