Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Dec 04, 2008 9:05 pm 
Offline
Newbie

Joined: Thu Dec 04, 2008 9:01 pm
Posts: 3
I installed denyhosts quite a while ago after being hacked. I have had no issues, but haven't been doing a lot on the box. Now, when I am just sitting browsing the web I will get kicked from WinSCP. When I click to reconnect, it returns "Server unexpectedly closed network connection." Sure enough I use putty to get in (why this wouldn't be banned I am unsure) and sure enough my ip is added to deny.hosts. I remove it and click reconnect and it works. Any ideas?

Thanks,
John


Top
   
 Post subject:
PostPosted: Thu Dec 04, 2008 10:44 pm 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
Does your putty session connect to your linode console and not via ssh?


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 12:07 am 
Offline
Newbie

Joined: Thu Dec 04, 2008 9:01 pm
Posts: 3
Actually, that seems fair since it logs in it is going to my dallas.linode rather than the ip/hostname that the WinSCP session is pointing.

However, this doesn't help me on the issue of being banned in the first place. Correct?


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 1:54 am 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
If WinSCP is using its background transfer feature, it will open several ssh connections, which might cause denyhosts to trip.


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 1:55 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
You can configure denyhosts to never deny your own IP address. You can use this feature if your IP address doesn't change a lot.

http://denyhosts.sourceforge.net/faq.html#allowed

But it's probably the way you're connecting to your server that's causing the problem in the first place. Does your WinSCP open several new connections at the same time, for example to transfer several files simultaneously? That might make denyhosts nervous, depending on your configuration... :?


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 2:39 am 
Offline
Newbie

Joined: Thu Dec 04, 2008 9:01 pm
Posts: 3
That is a good idea. My only concern (after being hacked and having to restart already) is that there is someone else trying to get in again. I have Webmin running and I see there is a backup option in there. Anyone have a recommendation on the best way to back up an entire box? Hopefully even including MySQL DBs, etc?


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 5:06 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
Backup your /etc, /var/log, your /home/*, /root directory and your website location generally /var/www, or /var/sites.

Backup as in tar them all up and download them, or email them to your gmail account or something.

I think mysql is stored in /var/mysql, but it is better to dump the database to a text file and import them back in later. PhpMyAdmin can do this easily :)

Good luck.


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 11:01 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
freedom_is_chaos wrote:
I think mysql is stored in /var/mysql

I checked, and the default location for MySQL data seems to be /var/lib/mysql (I checked this on two different distros; Debian and Gentoo).


Top
   
 Post subject:
PostPosted: Fri Dec 05, 2008 12:35 pm 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
Thanks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group