Find the answer to your Linux question:
Results 1 to 9 of 9
When I try to connect to my SSH server I get the following message: javitable@john-linux-laptop:~$ ssh 192.168.0.6 The authenticity of host '192.168.0.6 (192.168.0.6)' can't be established. RSA key fingerprint is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3

    SSH Server Problems


    When I try to connect to my SSH server I get the following message:

    javitable@john-linux-laptop:~$ ssh 192.168.0.6
    The authenticity of host '192.168.0.6 (192.168.0.6)' can't be established.
    RSA key fingerprint is e7:fd:dd:86:a4:1b:b4:d8:25:11:30:d7:f3:48:92:06.
    Are you sure you want to continue connecting (yes/no)?yes
    Host key verification failed.

    If you could tell me how to fix this.. that would be grand.

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Which distro are you using? Did you take a look at the /etc/ssh/sshd_config file on the server side? Maybe you want to specify a user too when connecting.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510

    PasswordAuthentication

    Here's a good article about the SSH login procedure.

    You could look at the /etc/shs/sshd_config file on the server you are logging into. If it has "PasswordAuthentication NO", then I think you must have one of these files already on the server in your ~/.ssh/ directory: identity.pub, id_rsa.pub, or id_dsa.pub. It's safe to copy the ".pub" files with ftp or whatever.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3
    i should have mentioned that I had it working in the past, this just randomly happened one day

  6. #5
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Maybe you can try to erase the "known_hosts" file in ~/.ssh.

    Still, which distro are you using?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  7. #6
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510

    known_hosts or messages

    Quote Originally Posted by involutaryhaxor
    i should have mentioned that I had it working in the past, this just randomly happened one day
    Ah! If for any reason either the host or server changed it's key, you'll have to delete the line for the other computer in your "~/.ssh/known_hosts" file. Although I think you are getting the wrong error message for that.

    See if there is an relevant error message in /var/log/messages.

  8. #7
    Just Joined!
    Join Date
    Jun 2006
    Posts
    3
    i feel real stupid asking this question, but where is the .ssh directory you mention, I figured it would be in my home directory, but it isn't

  9. #8
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510

    Run ssh-keygen

    When a user sets up SSH, he runs ssh-keygen to generate his keys, which also creates a directory named ".ssh" in your home directory, thus "~/.ssh".

    See man ssh.

  10. #9
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Do a
    Code:
    ls -la
    in your home directory it should be there.

    Unless you were root when logging with SSH, then the .ssh directory will be in the /root one.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Posting Permissions

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