You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

129
129
130
130
The **CMakeSettings.json** window appears.
131
131
132
-

132
+

133
133
134
134
Press **Add Configuration** (the green '+' button) and then choose **Linux-GCC-Debug** or **Linux-GCC-Release** if using GCC. Use the Clang variants if you're using the Clang/LLVM toolset. Press **Select** and then **Ctrl+S** to save the configuration.
Copy file name to clipboardExpand all lines: docs/linux/connect-to-your-remote-linux-computer.md
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,11 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
64
64
65
65
1. In the Connection Manager dialog, choose the **Add** button to add a new connection.
66
66
67
-

67
+

68
68
69
69
In either scenario, the **Connect to Remote System** window is displayed.
70
70
71
-

71
+

72
72
73
73
1. Enter the following information:
74
74
@@ -90,7 +90,7 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
90
90
91
91
If the connection fails, the entry boxes that need to be changed are outlined in red.
92
92
93
-

93
+

94
94
95
95
If you use key files for authentication, make sure the target machine's SSH server is running and configured properly.
96
96
@@ -181,7 +181,7 @@ For example: `HostKeyAlgorithms ssh-dss,ssh-rsa`
181
181
182
182
You can enable logging to help troubleshoot connection problems. On the menu bar, select **Tools > Options**. In the **Options** dialog, select **Cross Platform > Logging**:

185
185
186
186
Logs include connections, all commands sent to the remote machine (their text, exit code and execution time), and all output from Visual Studio to the shell. Logging works for any cross-platform CMake project or MSBuild-based Linux project in Visual Studio.
187
187
@@ -199,13 +199,11 @@ For example: `HostKeyAlgorithms ssh-dss,ssh-rsa`
199
199
200
200
The `rsync` command is used by both MSBuild-based Linux projects and CMake projects to [copy headers from your remote system to Windows for use by IntelliSense](configure-a-linux-project.md#remote_intellisense). When you can't enable TCP port forwarding, disable the automatic download of remote headers. To disable it, use **Tools > Options > Cross Platform > Connection Manager > Remote Headers IntelliSense Manager**. If the remote system doesn't have TCP port forwarding enabled, you'll see this error when the download of remote headers for IntelliSense begins:
201
201
202
-

203
-
204
-
202
+

205
203
206
204
`rsync` is also used by Visual Studio's CMake support to copy source files to the remote system. If you can't enable TCP port forwarding, you can use `sftp` as your remote copy sources method. `sftp` is often slower than `rsync`, but doesn't have a dependency on TCP port forwarding. You can manage your remote copy sources method with the `remoteCopySourcesMethod` property in the [CMake Settings Editor](../build/cmakesettings-reference.md#settings-for-cmake-linux). If TCP port forwarding is disabled on your remote system, you'll see an error in the CMake output window the first time it invokes `rsync`.
207
205
208
-

206
+

209
207
210
208
`gdbserver` can be used for debugging on embedded devices. If you can't enable TCP port forwarding, then you must use `gdb` for all remote debugging scenarios. `gdb` is used by default when debugging projects on a remote system.
0 commit comments