Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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, 03: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, 03: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, 03: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, 03: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, 03: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, 06:07 PM   #6
chrfr
macrumors 68000
 
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, 06: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:42 PM.

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

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