SOLVED: I didn't enter the full path in the IdentityFile line: ~/.ssh/siteground
Hello, I am trying to setup SSH on Ubuntu 18.04 but I'm having some issues. I created a config file located at ~/.ssh/config and in the file I have this:
Code:
Host siteground
HostName mydomain.com
User myusername
Port 18765
IdentityFile siteground
When I try to ssh into my Siteground server, I get this error:
Code:
no such identity: siteground: No such file or directory
myusername@mydomain.com: Permission denied (publickey).
However, if I am inside of the .ssh folder and try to login, it works as expected.
How can I make it so I can login anywhere using the Host in my Identity File?
Bookmarks