Could not establish connection to hostname. (Remote-SSH problem in VSCode ) (CentOS7)
Try to delete the fingerprint (a single line that corresponds to this particular connection - not the whole file) saved within the known_hosts file. If in Windows, this is placed at C:\Users\<your_user_name>\.ssh\known_host
whereas for Linux that would be within /home/<your_user_name>/.ssh/known_hosts
dir.
Since more detailed, you may also want to check this answer too.
Remote SSH in Visual Studio Code does not work
I solved this issue by creating a public and private key for my ssh connection. I added the public key to a .ssh folder on my Raspberry Pi. In vscode I added the path to the private key in the config file for the ssh connection.
I used this video https://www.youtube.com/watch?v=vpk_1gldOAE to learn how to generate the keys.
VScode remote connection error: The process tried to write to a nonexistent pipe
Add the absolute file path to a custom SSH config file(C:\Users\{USERNAME}\.ssh\config), and my problem is solved.
Related Topics
Linux Desktop Shortcut and Icon from Install
Under What Circumstances Does The Read() Syscall Return 0
Running Docker on Google Colab
How to Disable Serial Console(Non-Kernel) in U-Boot
Find The Depth of The Current Path
Linux Shell Programming String Compare Syntax
Alternatives to Make for Linux/Freebsd
Redirecting Apache Logs to Stdout
How to Accept Multiple Tcp Connections in Perl
Grep for Text with Wild Card in Between
Extract a Specific Folder to Specific Directory from a Tar.Gz
Intercepting File System System Calls
Fork() and Stdout/Stderr to The Console from Child Processes
Is Number of Frame = Number of Pages(Linux)