📑
The authenticity of host '[192.168.10.3]:22 ([192.168.10.3]:22)'
WindowsマシンからLinuxマシンにVisual Studio Codeの[Remote – SSH]で接続しようとしたときの事象です。
Visual Studio CodeのRemote – SSHで、はじめて接続するHostに接続すると
The authenticity of host '[192.168.10.3]:22 ([192.168.10.3]:22)' can't be established.
ED25519 key fingerprint is SHA256:lx44RPq/TutIt9dp5FVpUZhTxUE00Pu684EuEnojYlU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? Host key verification failed.
プロセスが、存在しないパイプに書き込もうとしました。
と、表示されて接続できませんでした。
Are you sure you want to continue connecting(yes/no/[fingerprint]?)
なので、ここでyesしたいですが、この画面は一瞬で閉じてしまうので出来ません。
Git Bashを開いて、ssh sample@192.168.10.3 -p 29346すると、yesすることができます。
$ ssh sample@192.168.10.3 -p 29346
The authenticity of host '[192.168.10.3]:29346 ([192.168.10.3]:29346)' can't be established.
ED25519 key fingerprint is SHA256:lx44RPq/TutIt9dp5FVpUZhTxUE00Pu684EuEnojYlU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[192.168.10.3]:29346' (ED25519) to the list of known hosts.
sample@192.168.10.3's password:
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Thu Feb 9 03:00:07 2023 from 192.168.10.100
これで、known hostsに192.168.10.3が書き込まれるので、無事Visual Studio Codeからリモート接続できます。
Discussion