Search code examples
sshwindows-subsystem-for-linux

Error when connecting to remote virtual machine via ssh


Hi I am having trouble connecting to the GCP VM via ssh, for some reason I can connect via ssh -i gpc [email protected] but when I create the config file with this configuration

Host corelogic-vm
     HostName 34.125.13.53
     User juand
     IdentityFile C:/Users/juand/.ssh/gpc

I get this error when I type ssh corelogic-vm

ssh: Could not resolve hostname corelogic-vm: Name or service not known

Solution

  • Is your file here? C:\Users\your_username.ssh\config