Giter Site home page Giter Site logo

ssmgr's Introduction

ss-manager

manager of ss server

mongodb version3 auth step:

1.vi /etc/mongod.conf 注释掉 bind,所有ip来源都可以链接,或者填写ip白名单 更改 port 为 指定port,如 28018 2.systemctl restart mongod 3.mongo --port 28018

	use admin
	db.createUser(
	  {
	    user: "admin",
	    pwd: "admin123",
	    roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
	  }
	)
  1. vi /etc/mongod.conf 2.6一下 auth=true 开启db验证

    3.2 authorization: enabled

  2. systemctl restart mongod

  3. mongo --port 28018 -u "admin" -p "admin123" --authenticationDatabase "admin"

	use ss
	db.createUser(
	  {
	    user: "gwl002",
	    pwd: "admin123",
	    roles: [ { role: "readWrite", db: "ss" }]
	  }
	)
  1. use ss db.auth("gwl002","admin123") show collections 不提示未授权就说明成功添加用户了

shadowsocks 多端口配置

link:https://github.com/shadowsocks/shadowsocks/wiki/Manage-Multiple-Users python版本开启命令:

	sserver --manager-address 127.0.0.1:6001 -c tests/server-multi-passwd.json

sshd配置

service sshd restart 重启
/etc/ssh/sshd_config 更改配置文件
复制公钥到~/.ssh/authorized_keys

ssmgr's People

Watchers

James Cloos avatar gwl002 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.