Visual Studiio - error : Could not connect to the remote system. Please verify your connection settings, and that your machine is on the network and reachable.
이상하군요, 분명히 (Visual Studio Connection Manager의) store.xml에 저장된,
<?xml version="1.0" encoding="utf-8"?>
<store hash="c492650...[생략]...0ec39">
<entries>
<entry id="-1204116193">
<isdefault>false</isdefault>
<hostname>192.168.100.20</hostname>
<port>22</port>
<dateAdded>금-11-2 2022 16:00:52</dateAdded>
<fingerprint>SHA256:5HAs..[생략]...+iI</fingerprint>
<credentials>
<lastsuccessful>월-1-1 0001 00:00:00</lastsuccessful>
<lastfailed>월-1-1 0001 00:00:00</lastfailed>
<lastupdated>금-21-7 2023 13:39:01</lastupdated>
<username>kevin</username>
<authenticationMethod>Password</authenticationMethod>
<password>AQAAAN..[생략]...kBWM5rQ==</password>
</credentials>
<properties />
</entry>
</entries>
</store>
fingerprint 값이 올바른데도,
C:\temp\ConsoleApp1\ConsoleApp1\bin> ssh -o FingerprintHash=sha256 192.168.100.20
The authenticity of host '192.168.100.20 (192.168.100.20)' can't be established.
ECDSA key fingerprint is SHA256:5HAs..[생략]...+iI.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
빌드 시 오류가 발생합니다.
Project "C:\temp\ConsoleApp1\ConsoleApp1.vcxproj" on node 1 (Rebuild target(s)).
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Application Type\Linux\1.0\Linux.targets(185,5): error : Could not connect to the remote system. Please verify your connection settings, and that your machine is on the network and reachable. [C:\temp\ConsoleApp1\ConsoleApp1.vcxproj]
Done Building Project "C:\temp\ConsoleApp1\ConsoleApp1.vcxproj" (Rebuild target(s)) -- FAILED.
이거저거 하다 보니, 해결은 됐는데, 아마도 ssh로 직접 로그인까지 완료한 경우에 저 현상이 없어진 것 같습니다. (확실하지 않으므로 나중에 한 번 더 오류가 발생하면 테스트를 해보겠습니다.) 단지 기록 차원에서 남깁니다. ^^
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]