Results 1 to 3 of 3

Thread: Using SSH

  1. #1
    Join Date
    Nov 2019
    Beans
    2

    Using SSH

    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?
    Last edited by jeremycollins2; 3 Days Ago at 10:47 PM. Reason: SOLVED

  2. #2
    Join Date
    Dec 2014
    Beans
    1,265

    Re: Using SSH

    By giving a path and filename to the IdentityFile directive.
    Code:
    Host siteground
            HostName mydomain.com
            User myusername
            Port 18765
            IdentityFile ~/.ssh/siteground
    Holger

  3. #3
    Join Date
    Nov 2019
    Beans
    2

    Re: Using SSH

    Thank you!!

    Quote Originally Posted by Holger_Gehrke View Post
    By giving a path and filename to the IdentityFile directive.
    Code:
    Host siteground
            HostName mydomain.com
            User myusername
            Port 18765
            IdentityFile ~/.ssh/siteground
    Holger

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •