Trying to ssh from Snow Leopard to Ubuntu Server 10.04.1...

Discussion in 'macOS' started by waloshin, Sep 6, 2010.

  1. waloshin macrumors 68040

    waloshin

    Joined:
    Oct 9, 2008
    #1
    Trying to ssh from Snow Leopard to Ubuntu Server 10.04.1...

    And of course i reinstalled Ubuntu last night and the RSA host key has changed so how do I change the host key on my Macbook to match the Ubuntu Server so I can ssh into my server?


    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that the RSA host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is


    Please contact your system administrator.
    Add correct host key in /Users/myusername/.ssh/known_hosts to get rid of this message.
    Offending key in /Users/myusername/.ssh/known_hosts:2

    Now the problem is I click on Mac osx then Users/ then my username/???? then there is no .ssh folder?
     
  2. steerpikegg macrumors member

    Joined:
    Nov 19, 2007
    #2
    That's because it's a hidden folder.

    Just remove the entry for the server in the file via the terminal (I assume you are familiar with the shell since you are trying to ssh)
     
  3. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #3
    From Terminal command line you could do

    pico ~/.ssh/known_hosts

    Use control-k to remove offending key, control-o to save and control-x to exit pico.
     
  4. waloshin thread starter macrumors 68040

    waloshin

    Joined:
    Oct 9, 2008
    #4
    Or:

    Open up terminal then type:

    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall Finder

    And to hide the folder again just type:

    Fix for everyone in the future:

    Open up terminal then type:

    defaults write com.apple.finder AppleShowAllFiles FALSE
    killall Finder
     
  5. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #5
    Oh, that's for weenies. :eek: Just (half) kidding.
     

Share This Page