Linux command
ss-server 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start server
ss-server -s [0.0.0.0] -p [8388] -k "[password]" -m [aes-256-gcm]
Start server
ss-server -c [/etc/shadowsocks/config.json]
Start in verbose mode
ss-server -c [config.json] -v
Start with a specific user
ss-server -c [config.json] -a [nobody]
Run as daemon
ss-server -c [config.json] -f [/var/run/ss-server.pid]
说明
ss-server is the server component of Shadowsocks, a secure proxy protocol designed to protect network traffic. It listens for incoming connections from Shadowsocks clients and forwards traffic to destination servers. The server encrypts all traffic between client and server using modern cryptographic algorithms. Recommended ciphers include aes-256-gcm and chacha20-ietf-poly1305 (AEAD ciphers). Older stream ciphers are deprecated due to security vulnerabilities. Configuration can be provided via command-line arguments or a JSON file. The JSON format supports additional options like multiple server ports and plugin configuration.
参数
- -c, --config _file_
- Path to JSON configuration file.
- -s, --server _address_
- Server address to bind to.
- -p, --server-port _port_
- Server port number.
- -k, --password _password_
- Password for encryption.
- -m, --encrypt-method _method_
- Encryption method (aes-256-gcm, chacha20-ietf-poly1305, etc.).
- -t, --timeout _seconds_
- Socket timeout in seconds.
- -a, --user _user_
- Run as specified user.
- -f, --pid-file _file_
- PID file path for daemon mode.
- -d, --dns _server_
- DNS server address.
- --fast-open
- Enable TCP fast open.
- --reuse-port
- Enable port reuse for multiple instances.
- -u, --udp
- Enable UDP relay.
- -v, --verbose
- Enable verbose logging.
- -h, --help
- Display help information.
FAQ
What is the ss-server command used for?
ss-server is the server component of Shadowsocks, a secure proxy protocol designed to protect network traffic. It listens for incoming connections from Shadowsocks clients and forwards traffic to destination servers. The server encrypts all traffic between client and server using modern cryptographic algorithms. Recommended ciphers include aes-256-gcm and chacha20-ietf-poly1305 (AEAD ciphers). Older stream ciphers are deprecated due to security vulnerabilities. Configuration can be provided via command-line arguments or a JSON file. The JSON format supports additional options like multiple server ports and plugin configuration.
How do I run a basic ss-server example?
Run `ss-server -s [0.0.0.0] -p [8388] -k "[password]" -m [aes-256-gcm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --config _file_ do in ss-server?
Path to JSON configuration file.