Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能通过命令行更新 Server 配置 #40

Closed
ElfSundae opened this issue Aug 21, 2016 · 8 comments
Closed

能不能通过命令行更新 Server 配置 #40

ElfSundae opened this issue Aug 21, 2016 · 8 comments

Comments

@ElfSundae
Copy link

更新密码

@qiuyuzhou
Copy link
Collaborator

目前没有想到简单的方法实现。

@ElfSundae
Copy link
Author

用 JSON 可以吗?比如

$ /Applications/ShadowsocksX-NG.app/Contents/MacOS/ShadowsocksX-NG addserver "json config"
$ ShadowsocksX-NG updateserver "address_or_remark" "json config"
$ ShadowsocksX-NG  removeserver "address_or_remark"

$ ShadowsocksX-NG server -add "remark" --json="..."
$ ShadowsocksX-NG server -add "remark" --server_host="" --server_port="" --password="" --encrypt_method="rc4"
$ ShadowsocksX-NG server -update "remark" --password="new"
$ ShadowsocksX-NG server -update "remark" --json="..."
$ ShadowsocksX-NG server -remove "remark"
$ ShadowsocksX-NG server -remove --server_host="abc.com"
$ ShadowsocksX-NG server -list

@qinyuhang
Copy link
Contributor

我在分支加了一个批量导入导出配置json文件(json配置文件兼容win版),你的这个情况我感觉可以通过:
导出json文件 -> 命令行批量修改json文件密码 -> 重新导入 -> 删除旧的服务器配置 来达成。

@ElfSundae
Copy link
Author

@qinyuhang 谢谢,刚试了下,好像也是在菜单里操作,不支持命令行。

@qinyuhang
Copy link
Contributor

没说可以支持在命令行执行……

Elf Sundae [email protected]于2016年8月30日 周二10:03写道:

@qinyuhang https://github.com/qinyuhang 谢谢,刚试了下,好像也是在菜单里操作,不支持命令行。


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#40 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8zUY_nShQReBADr6myDXCLCUhQ6wiEks5qk495gaJpZM4JpSbJ
.

@ElfSundae
Copy link
Author

我之前买过几个年付ss账号,服务器被和谐后老板就跑路了 😞 现在主要用 Google hosts,也不常用ss了,偶尔用的话就去找个免费的用。
免费账号基本都会不停改密码,所以最初的想法是看这个能不能支持自动配置服务器信息,我写个脚本爬密码然后放到 crontab 里,要有时就不用去改密码了。
小问题,不用管了 😄

@qinyuhang
Copy link
Contributor

额 这个你可以自己写AppleScript达成的

Elf Sundae [email protected]于2016年8月30日 周二10:10写道:

我之前买过几个年付ss账号,服务器被和谐后老板就跑路了 😞 现在主要用 Google hosts,也不常用ss了,偶尔用的话就去找个免费的用。
免费账号基本都会不停改密码,所以最初的想法是看这个能不能支持自动配置服务器信息,我写个脚本爬密码然后放到 crontab 里,要有时就不用去改密码了。
小问题,不用管了 😄


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#40 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8zUachh7udpT2-XC-S_oD33kJuO3vEks5qk5D5gaJpZM4JpSbJ
.

@ElfSundae
Copy link
Author

嗯,应该可以,谢谢提醒。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants