Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

waloshin

macrumors 68040
Original poster
Oct 9, 2008
3,560
394
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?
 
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)
 
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.
 
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
 
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

Oh, that's for weenies. :eek: Just (half) kidding.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.