Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 7, 2013, 04:10 PM   #1
m0ss
macrumors newbie
 
Join Date: Jan 2013
Unknown host in .ssh folder?

Hi All,

I'm new here and relatively new to UNIX. I've read many threads on here since I converted to OSX but never written a post before so hoping someone can help me learn a bit more.

I was poking around my machine and found my .ssh folder and the known hosts file within it.

There is an IP and a long string within this known hosts file.

The IP is an Amazon Web Services IP as far as I can see and I assume the string is some kind of key.

Could someone explain what could cause such an IP to show in this hosts file and why it might be there and if it's normal?

Many thanks
m0ss
m0ss is offline   0 Reply With Quote
Old Jan 7, 2013, 04:15 PM   #2
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Do you have Amazon Cloud Drive?

Also, the hosts file is supposed to be at "/etc/hosts".
ConCat is offline   0 Reply With Quote
Old Jan 7, 2013, 04:21 PM   #3
m0ss
Thread Starter
macrumors newbie
 
Join Date: Jan 2013
Thanks for the reply ConCat. Nope I don't use Amazon Cloud Drive. And my main private/etc/hosts doesn't include the same IP so no idea where it's come from.

I don't know enough about this but could this host in my SSH folder enable remote shell access?
m0ss is offline   0 Reply With Quote
Old Jan 7, 2013, 04:27 PM   #4
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by m0ss View Post
Thanks for the reply ConCat. Nope I don't use Amazon Cloud Drive. And my main private/etc/hosts doesn't include the same IP so no idea where it's come from.

I don't know enough about this but could this host in my SSH folder enable remote shell access?
No. What the host file does is redirect DNS queries, so for example, "localhost" is mapped in the host file to "127.0.0.1" for ipv4 and "fe80::1%lo0" for ipv6. That means that if you or any app on the computer attempts to access "localhost", it'll be directed to those IP addresses. I wouldn't worry about it.
ConCat is offline   0 Reply With Quote
Old Jan 7, 2013, 04:54 PM   #5
m0ss
Thread Starter
macrumors newbie
 
Join Date: Jan 2013
Cool. Thanks for the assurance. I've also commented it out now anyway.
m0ss is offline   0 Reply With Quote
Old Jan 7, 2013, 07:07 PM   #6
chrfr
macrumors 68030
 
Join Date: Jul 2009
Quote:
Originally Posted by ConCat View Post
No. What the host file does is redirect DNS queries, so for example, "localhost" is mapped in the host file to "127.0.0.1" for ipv4 and "fe80::1%lo0" for ipv6. That means that if you or any app on the computer attempts to access "localhost", it'll be directed to those IP addresses. I wouldn't worry about it.
No, ~/.ssh/known_hosts has nothing to do with the above. The contents of known_hosts would be the public security keys of machines you've connected to in the past. It doesn't in itself indicate a security problem but it's not impossible.

http://amath.colorado.edu/computing/...nownhosts.html
chrfr is offline   0 Reply With Quote
Old Jan 7, 2013, 07:52 PM   #7
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by chrfr View Post
No, ~/.ssh/known_hosts has nothing to do with the above. The contents of known_hosts would be the public security keys of machines you've connected to in the past. It doesn't in itself indicate a security problem but it's not impossible.

http://amath.colorado.edu/computing/...nownhosts.html
Didn't know about that file. He mentioned the hosts file which is /etc/hosts.

EDIT: Oh, I see now. "Known hosts" file. I misread it the first time.
ConCat is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
[App Store] Unknown error and unknown e-mail address pop up Jeroen1987 Mac Basics and Help 13 May 20, 2013 09:43 AM
Unknown thread crashed with unknown flavor Monaj iPhone/iPad Programming 1 May 9, 2013 07:19 AM
Mac target mode prob. Nothing in hd folder on host. Lisafloss iMac 0 Apr 21, 2013 06:55 AM
iPad: ssh to host using Terminal Emulater? BerGaur Jailbreaks and iOS Hacks 1 Sep 1, 2012 02:32 PM

Forum Jump

All times are GMT -5. The time now is 06:09 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC