1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/SSH/Common-methods/Get-settings-private-key.mdx
Vitaly the Alpaca (bot) 3d6fbabed1 Main build (Jenkins)
2025-09-28 23:20:40 +03:00

47 lines
1.4 KiB
Plaintext
Vendored

---
sidebar_position: 7
description: Get settings (private key) 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 (private key)
Gets connection settings with private key authentication
`Function GetSettingsPrivateKey(Val Host, Val Port, Val Login, Val Private, Val Public = "", Val Password = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Host | --host | String | ✔ | SSH host |
| Port | --port | Number | ✔ | SSH port |
| Login | --user | String | ✔ | SSH username |
| Private | --key | String | ✔ | Path to private key file |
| Public | --pub | String | ✖ | Path to public key file |
| Password | --pass | String | ✖ | Private key password (passphrase) |
Returns: Structure Of KeyAndValue - Connection configuration
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
Result = OPI_SSH.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
```