lulz! ^_^
Okay, first of all... I didn't start this thread. I was suggesting a
possible solution to accessing CouchDB without having to open the server to
the general public with no password.
For some reason I got a comment that logging in as root was "worse" than
making CouchDB publicly accessible. I don't see why it's a big deal with
respect to the conversation at hand. The original poster just wanted to
access his CouchDB instance. Whether or not allowing root causes brute
force attacks to be more successful really has nothing to do with the topic
at hand.
>>>
zi...@ignition-project.com>**wrote:
>>>
>>>> But you're SSHing as root, which is probably worse than opening CouchDB
>>>>>
>>>> to
>>>
>>>> the world with no password.
>>>>>
>>>>> ---
>>>>> Keith Gable
>>>>> A+, Network+, and Storage+ Certified Professional
>>>>> Apple Certified Technical Coordinator
>>>>> Mobile Application Developer / Web Developer
>>>>>
>>>>>
>>>>> On Mon, Apr 15, 2013 at 8:45 AM, Tim Tisdall <
tis...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> Instead of opening CouchDB to the world, I simply access it by
>>>>>> port-forwarding through ssh when I connect to the machine. Like this:
>>>>>>
>>>>>> ssh -L 5984:
127.0.0.1:5984 ro...@mymachine.com
>>>>>>
>>>>>> Then on my local machine I can simply access
>>>>>>
>>>>>
http://localhost:5984/_utils/**and <
http://localhost:5984/_utils/and>
>>>>>
>>>>>> up comes futon. It depends on your use-case, but this works well for
>>>>>>
>>>>> me.
>>>
>>>>
>>>>>>
>>>>>> On Mon, Apr 15, 2013 at 7:14 AM, Stefan Reich <
>>>>>> stefan.reich.maker.of.eye@**
googlemail.com<
stefan.reich...@googlemail.com>>
>>>>>> wrote:
>>>>>>
>>>>>> Hmm... maybe you guys can help me solve the rest of the problem?
>>>>>>>
>>>>>> (Access
>>>>>
>>>>>> to
>>>>>>
>>>>>>> couchdb from outside)
>>>>>>>
>>>>>>> These are the last iptables rules in chain INPUT:;
>>>>>>>
>>>>>>> MY_REJECT all -- anywhere anywhere
>>>>>>> ACCEPT tcp -- anywhere anywhere tcp
>>>>>>>
>>>>>> dpt:5984
>>>>>
>>>>>> Is that not what it should be...? Says "anywhere"... everywhere.
>>>>>>>
>>>>>> Heh.
>>>
>>>> Cheers,
>>>>>>> Stefan
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Apr 15, 2013 at 1:08 PM, Stefan Reich <
>>>>>>> stefan.reich.maker.of.eye@**
googlemail.com<
stefan.reich...@googlemail.com>>
>>>>>>>>>>>> stefan.reich.maker.of.eye@**
googlemail.com<
stefan.reich...@googlemail.com>>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Oops, bad copy&paste - here's the actual process info:
>>>>>>>>>>>>>
>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# ps -aef|grep 7651
>>>>>>>>>>>>> couchdb 7651 7650 0 19:44 pts/0 00:00:00
>>>>>>>>>>>>> /usr/lib/erlang/erts-5.8/bin/**beam.smp -Bd -K true -- -root
>>>>>>>>>>>>>
>>>>>>>>>>>> /usr/lib/erlang
>>>>>>>>>>>
>>>>>>>>>>>> -progname erl -- -home /var/lib/couchdb -- -noshell
>>>>>>>>>>>>>
>>>>>>>>>>>> -noinput
>>>
>>>> -sasl
>>>>>>>
>>>>>>>> errlog_type error -couch_ini /etc/couchdb/default.ini
>>>>>>>>>>>>> /etc/couchdb/local.ini /etc/couchdb/default.ini
>>>>>>>>>>>>>
>>>>>>>>>>>> /etc/couchdb/local.ini
>>>>>>>>>
>>>>>>>>>> -s
>>>>>>>>>>>
>>>>>>>>>>>> couch -pidfile /var/run/couchdb/couchdb.pid -heart
>>>>>>>>>>>>> couchdb 7682 7651 0 19:44 ? 00:00:00 heart -pid
>>>>>>>>>>>>>
>>>>>>>>>>>> 7651
>>>>>
>>>>>> -ht 11
>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>>>> Stefan
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Apr 10, 2013 at 7:46 PM, Stefan Reich <
>>>>>>>>>>>>> stefan.reich.maker.of.eye@**
googlemail.com<
stefan.reich...@googlemail.com>>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi there!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'd like to start using CouchDB for my projects.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> This is on a Linux host. CouchDB installed from standard
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Debian
>>>>>>
>>>>>>> package,
>>>>>>>>>>>
>>>>>>>>>>>> no settings altered. But it doesn't start properly:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# uname -a
>>>>>>>>>>>>>> Linux pussy-riot-germany 2.6.32-042stab068.8 #1 SMP Fri
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Dec 7
>>>>>
>>>>>> 17:06:14
>>>>>>>>>>
>>>>>>>>>>> MSK
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2012 i686 GNU/Linux
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# /etc/init.d/couchdb
>>>>>>>>>>>>>>
>>>>>>>>>>>>> start
>>>>>>
>>>>>>> Starting database server: couchdb.
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# /etc/init.d/couchdb
>>>>>>>>>>>>>>
>>>>>>>>>>>>> status
>>>>>>
>>>>>>> Apache CouchDB is running as process 7651, time to
>>>>>>>>>>>>>>
>>>>>>>>>>>>> relax.
>>>
>>>> root@pussy-riot-germany:~/**luastuff# telnet localhost
>>>>>>>>>>>>>>
>>>>>>>>>>>>> 5984
>>>
>>>> Trying ::1...
>>>>>>>>>>>>>> Trying 127.0.0.1...
>>>>>>>>>>>>>> telnet: Unable to connect to remote host: Connection
>>>>>>>>>>>>>>
>>>>>>>>>>>>> refused
>>>>>
>>>>>> Connection refused?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Here's the process info:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# uname -a
>>>>>>>>>>>>>> Linux pussy-riot-germany 2.6.32-042stab068.8 #1 SMP Fri
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Dec 7
>>>>>
>>>>>> 17:06:14
>>>>>>>>>>
>>>>>>>>>>> MSK
>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2012 i686 GNU/Linux
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# /etc/init.d/couchdb
>>>>>>>>>>>>>>
>>>>>>>>>>>>> start
>>>>>>
>>>>>>> Starting database server: couchdb.
>>>>>>>>>>>>>> root@pussy-riot-germany:~/**luastuff# /etc/init.d/couchdb
>>>>>>>>>>>>>>
>>>>>>>>>>>>> status
>>>>>>
>>>>>>> Apache CouchDB is running as process 7651, time to
>>>>>>>>>>>>>>
>>>>>>>>>>>>> relax.
>>>
>>>> root@pussy-riot-germany:~/**luastuff# telnet localhost