|
| 1 | +--- |
| 2 | +title: "ConnectionManager Reference" |
| 3 | +ms.date: "11/04/2016" |
| 4 | +f1_keywords: ["ConnectionManager"] |
| 5 | +helpviewer_keywords: ["ConnectionManager program"] |
| 6 | +ms.assetid: 14e65747-d000-4343-854b-8393bf01cbac |
| 7 | +--- |
| 8 | +# ConnectionManager Reference |
| 9 | + |
| 10 | +ConnectionManager.exe is a command-line utility to manage remote development connections outside of Visual Studio. You may find it useful for tasks such as provisioning a new development machine, or setting up Visual Studio for continuous integration. It's available in Visual Studio 2019 version 16.5 and later. |
| 11 | + |
| 12 | +ConnectionManager.exe is installed automatically when you choose the Connection Manager component in the Visual Studio Installer. By default, it's installed in *%VCIDEInstallDir%\\Linux\\bin\\ConnectionManager.exe*. You can use it in a Developer Command Prompt window. For more information about the Developer Command Prompt, see [Use the Microsoft C++ toolset from the command line](..\building-on-the-command-line.md). |
| 13 | + |
| 14 | +The functionality of ConnectionManager.exe is also available in Visual Studio. To manage remote development connections in the IDE, on the menu bar, choose **Tools** > **Options** to open the Options dialog. In the Options dialog, select **Cross Platform** > **Connection Manager**. |
| 15 | + |
| 16 | +## Syntax |
| 17 | + |
| 18 | +> **ConnectionManager.exe** *command* \[*arguments*] \[*options*] |
| 19 | +
|
| 20 | +### Commands and arguments |
| 21 | + |
| 22 | +- **add** *user@host* \[**--port** *port*] \[**--password** *password*] \[**--privatekey** *privatekey_file*] |
| 23 | + |
| 24 | + Authenticates and adds a new connection. By default, it uses port 22 and password authentication. (You are prompted to enter a password). Use both **--password** and **--privatekey** to specify a password for a private key. |
| 25 | + |
| 26 | +- **remove** \[*connection_id* \| *user@host* \[**--port** *port*]] |
| 27 | + |
| 28 | + Removes a connection. If no arguments are specified, you are prompted to specify which connection to remove. |
| 29 | + |
| 30 | +- **remove-all** |
| 31 | + |
| 32 | + Removes all stored connections. |
| 33 | + |
| 34 | +- **list** |
| 35 | + |
| 36 | + Displays information and ids of all stored connections. |
| 37 | + |
| 38 | +- **help** |
| 39 | + |
| 40 | + Displays a help screen. |
| 41 | + |
| 42 | +- **version** |
| 43 | + |
| 44 | + Displays version information. |
| 45 | + |
| 46 | +### Options |
| 47 | + |
| 48 | +- **-q**, **--quiet** |
| 49 | + |
| 50 | + Do not output to stdout or stderr. |
| 51 | + |
| 52 | +- **--no-prompt** |
| 53 | + |
| 54 | + Fail instead of prompt, when appropriate. |
| 55 | + |
| 56 | +- **--no-verify** |
| 57 | + |
| 58 | + Add or modify a connection without authentication. |
| 59 | + |
| 60 | +- **--file** *filename* |
| 61 | + |
| 62 | + Read connection information from the provided *filename*. |
| 63 | + |
| 64 | +- **--no-telemetry** |
| 65 | + |
| 66 | + Disable sending usage data back to Microsoft. Usage data is collected and sent back to Microsoft unless the **--no-telemetry** flag is passed. |
| 67 | + |
| 68 | +- **-n**, **--dry-run** |
| 69 | + |
| 70 | + Perform a dry-run of the command. |
| 71 | + |
| 72 | +- **-p** |
| 73 | + |
| 74 | + Same as **--password**. |
| 75 | + |
| 76 | +- **-i** |
| 77 | + |
| 78 | + Same as **--privatekey**. |
| 79 | + |
| 80 | +## Examples |
| 81 | + |
| 82 | +This command adds a connection for a user named "user" on localhost. The connection uses a key file for authentication, found in *%USERPROFILE%\.ssh\id_rsa*. |
| 83 | + |
| 84 | +```cmd |
| 85 | +ConnectionManager.exe add user@127.0.0.1 --privatekey "%USERPROFILE%\.ssh\id_rsa" |
| 86 | +``` |
| 87 | + |
| 88 | +This command removes the connection that has ID 1975957870 from the list of connections. |
| 89 | + |
| 90 | +```cmd |
| 91 | +ConnectionManager.exe remove 1975957870 |
| 92 | +``` |
| 93 | + |
| 94 | +## See also |
| 95 | + |
| 96 | +[XML Documentation](xml-documentation-visual-cpp.md) |
0 commit comments