Skip to content

Instantly share code, notes, and snippets.

title: Enable authentication on each component in the cluster.
stepnum: 2
ref: enable-auth
pre:
Enable authentication by specifying the key file on each
:program:`mongos` and :program:`mongod` in the cluster, including each
config server and shard. On each, specify the key file by doing one of
the following:
action:
- heading: Specify the key file in the configuration file.
ssh you@yourlinode "wget -O - -q https://api.linode.com/?api_key=$LINODE_API_KEY\&api_action=domain.resource.update\&domainid=$DOMAINID\&resourceid=$RESOURCEID\&target=\`echo \$SSH_CLIENT | cut -d' ' -f1\`"