Home > other >  Ubuntu vs2019 community edition, debugging code, an error: unable to connect to the remote system. P
Ubuntu vs2019 community edition, debugging code, an error: unable to connect to the remote system. P

Time:03-21

#include

Int main ()
{
Printf (" hello from the test! \n");
return 0;
}
Unfortunately, compile the report the following error:
1> C: \ Program Files \ Microsoft Visual Studio (x86), 2019, the Community, the MSBuild \ Microsoft \ \ v160 \ Application of VC Type \ Linux \ \ Linux 1.0 the targets (221, 5) : error: unable to connect to a remote system, please verify your connection Settings, and verify that your computer is connected to the Internet and accessible,
In fact, in a period of time, and all is OK, whether it is connected to the 64 - bit ubuntu, or 32-bit ubunt, set up the connection win sublinux are OK,
The error, not suddenly, the newspaper online search a lot of content, no similar mistake solution, afraid to where the negligence, the steps in a test on the Internet for many times, can't normal compilation, has been an error,
Then, reinstall the system, also reinstall the VS2019 community edition, can thought OK, incredibly still report "error: unable to connect to the remote system. Please verify your connection Settings, and verify that your computer is connected to the Internet and accessible,"
The Settings are set up, looks like there's no place oversight ah


CodePudding user response:

Hello,
Thank you very much in

CodePudding user response:

Thank you for your reply, you mean, I have tried, no!
Tried to a third party during the period of visualGDB r6 version 5.4, very smoothly, should explain my VM setup configuration no problem,
So, restructuring the system again, and VS2019, problems still, exactly what went wrong, it's strange,
OK in VS2019 compile project, to execute the compiled file corresponding directory of the virtual machine, also normal,
But debugging is prompt, "unable to connect to the remote host"

CodePudding user response:

Hello,
> Tried to a third party during the period of visualGDB r6 version 5.4, very smoothly, should explain my VM setup configuration no problem,
So you are installed on a Windows host VM and Linux virtual machine? If so, I haven't tried also not too clear, under normal circumstances, if Windows and Linux system on different hosts, or configuration on Win10 WSL (Windows Subsystem for Linux), these cases should be no problem,
Best Wishes,
Jack Zhang






CodePudding user response:

I also have this problem, but I solved, specific as follows:
1. To ensure the engineering related parameters of the modified, basically most card here:

,
These two places are to change
2. Make sure your ubuntu SSH service open command is as follows: the service SSH status
3. Make sure your ubuntu SSH service port in accordance with you to fill out!!!!!! Check the CD/etc/SSH/sshd_config in port, generally the default port is 22
4. Note that if you are using the WSL students must pay attention to your Linux system with your Windows host name is the same, also is the need to connect the IP is the same, then your Windows if there are
SSH server - the default port is 22, so you must modify your Linux system SSH service port can link!! Modify the way I will not say, pay attention to the modified restart SSH service!!
  • Related