You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-23 22:05:15 +02:00
68 lines
1.7 KiB
Plaintext
Vendored
68 lines
1.7 KiB
Plaintext
Vendored
---
|
|
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/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Host = "172.33.0.13";
|
|
Port = "2222";
|
|
Login = "bayselonarrend";
|
|
Result = OPI_SSH.GetSettingsViaAgent(Host, Port, Login);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint ssh GetSettingsViaAgent \
|
|
--host "172.33.0.13" \
|
|
--port "2222" \
|
|
--user "bayselonarrend"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint ssh GetSettingsViaAgent ^
|
|
--host "172.33.0.13" ^
|
|
--port "2222" ^
|
|
--user "bayselonarrend"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"auth_type": "agent",
|
|
"host": "172.33.0.13",
|
|
"port": 2222,
|
|
"username": "bayselonarrend"
|
|
}
|
|
```
|