I been using denyhost on my own server and many other boxes i been taking care of.
I was getting error whenever i tried connecting to my server
“ssh_exchange_identification: Connection closed by remote host”
After checking logfile i figured that its happening because of the denyhost. The documentation at the denyhost website explains how to remove the blacklisted Ip
Now i had to find real issue why is my legitimate IP getting blacklisted again and again?
My logfile gave me a Warning
Aug 25 16:39:34 vm27 sshd: reverse mapping checking getaddrinfo for server62.xyz.net.in [200.99.04.24] failed – POSSIBLE BREAK-IN ATTEMPT!
To get this error removed what i did was, I had to add UseDns no to /etc/ssh/ssd_config file.
This removed warning messages and also i was not getting anymore issue of getting IP blocked from denyhost.
1.Installing Ruby and Ruby on Rails.
$ sudo apt-get install ruby rails
2.Creating first application running on WEBrick server.
$ rails test
3.Configure WEBrick (Ruby’s server)
$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-08-02 12:40:40] INFO WEBrick 1.3.1
[2010-08-02 12:40:40] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2010-08-02 12:40:45] INFO WEBrick::HTTPServer#start: pid=27681 port=3000
To test your ROR configure paste http://0.0.0.0:3000 on your browser.
4.Creating a Controller, I call it hello.
$ ruby script/generate controller hello
5.Creating an action, I call it hi.
In the file app/controllers/hello_controller.rb, i have added action “hi”
class HelloController < ApplicationController
6.Creating view for the action “hi”
$ vim app/views/hello/hi.html.erb
<body> Hello World!!</body>
Lets test our page again.( Am sure the WEBrick server still running)
on browser paste this –> http://0.0.0.0:3000/hello/hi and you can see your first ROR application in front of you.