EASY RSH

CLI Reference

A concise reference for build commands, server flags, client invocation, and session commands.

Server

./server [options]
FlagDescription
-p, --port PORTListen on PORT instead of the saved value
-c, --commandEnable remote command execution
-f, --forkFork a handler process for each client
--reconfigureRun the interactive setup wizard
-h, --helpDisplay usage and exit

Examples:

./server
./server --port 9000
./server --port 9000 --command --fork
./server --reconfigure

Client

./client [host] [port]

Examples:

./client 127.0.0.1 8080
./client 10.0.0.25 9000

User utility

./adduser <username> <password>

Example:

./adduser admin 'a-strong-local-password'

Interactive commands

CommandBehavior
pwdReturn the server-side working directory
cd <path>Change the handler's working directory
remootRequest a restart of the server loop
exitEnd the client session
Any other commandParse arguments and execute with execvp

Build commands

CommandBehavior
makeBuild all binaries in debug mode
make DEBUG=0Build all binaries with release optimization
make serverBuild the server only
make clientBuild the client only
make adduserBuild the user utility only
make clean allRemove build output and rebuild

Files created at runtime

PathContents
data/server.confSaved port and mode settings
data/users.txtUsername, salt, and password hash records
build/*.oIntermediate compiler output

On this page