From a73c7bf0215d56ec848e531d97416dcf06e412f6 Mon Sep 17 00:00:00 2001 From: Andreas Glashauser Date: Tue, 25 Mar 2025 15:09:44 +0100 Subject: [PATCH] ADDED: example configuration file --- knockssh.conf.example | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 knockssh.conf.example diff --git a/knockssh.conf.example b/knockssh.conf.example new file mode 100644 index 0000000..34f6938 --- /dev/null +++ b/knockssh.conf.example @@ -0,0 +1,16 @@ +# This is the main configuration file for knockssh. +# It contains various profiles with settings for host, ssh port, user, and the ports to knock for opening/closing. +# By default, this configuration file is located in ~/.knockssh.conf. + +[default] # The default profile, used when no profile is specified in the command. +host = example.com # The target host to connect to (e.g., domain or IP address). +ssh_port = 2222 # The SSH port for the default profile (default is usually 22). +user = fred # The user to log in as via SSH. +open_ports = 7000,8000 # Comma-separated list of ports to knock to open for SSH access. +close_ports = 8000,7000 # Comma-separated list of ports to knock to close the connection. + +[foo] # A second profile named 'foo' which can be called via knockssh -p foo +host = 192.0.2.1 # Example host in the 192.0.2.0/24 range (reserved for documentation). +user = waldo # A different user for this profile. +open_ports = 7000,8000,9000 # Additional ports to knock for opening on this host. +close_ports = 1934,2948,2932 # Different ports to knock for closing on this host. -- 2.39.5