8dfa2d7608
Improve error handling
...
Don't swallow error and add context to errors.
2024-09-29 23:41:52 +02:00
c70df10d0d
Replace IPv4/IPv6 handling with address argument
...
To have better handling regarding the interface and port to used.
This makes the application only use one address at the time, but
if I want the application to bind to IPv4 and IPv6 I can spawn two
instances or use Docker and its networking to bind it on the host on
both addresses.
2024-09-29 23:15:18 +02:00
b5c2560358
Replace deprecated ioutil.ReadFile with new func from os
2023-09-21 23:16:03 +02:00
61fc3ad141
Replace own ip extraction function with func from net package
2023-09-21 23:13:31 +02:00
1dc9ba16b5
Fix WaitGroup count on IPv4 only mode
...
It doesn't really matters, because we never mark them as done, but this
would make it easier if waiting for it would be required in the future.
2022-05-21 16:08:52 +02:00
8ebf7531e9
Move the ssh.ServerConfig creation to the main func
...
There is no need to create a config per request.
2022-05-21 16:08:32 +02:00
f5a9473a9a
Extract previously inline PasswordCallback function into own function
...
I decided instead of defining the func inline in to a top level function
to reduce the nesting
2022-05-21 15:53:39 +02:00
b4a50e382f
Fix variable naming inside the getKey function
...
This should fix golint.
2022-03-16 11:46:26 +01:00
a1a5164061
Unexport PrintData function
...
There is no need to export the function.
2022-03-16 11:46:26 +01:00
26baa83da8
Add JSON logging option
...
The connection information can now be displayed in JSON format. To
activate it use the '--json' flag. It will only format the connection
information in JSON everything else will be still in plain text.
2021-09-02 12:54:21 +02:00
a63e9965f2
Fix not loading key from path if given as param
2021-09-02 12:17:22 +02:00
4fea62262f
Fix IPv4 port to bind to 0.0.0.0
2021-06-20 16:25:57 +02:00
049e2d4714
Fix tool description
2021-06-16 23:10:05 +02:00
8ca9c879db
Add flag for IPv4 only mode
2021-06-16 23:10:05 +02:00
36af54cd65
Add IPv6 support
2021-06-16 23:10:05 +02:00
f4f522441f
Move key parsing to top level function
...
With this the key gets only parsed once and not on every connection.
2021-06-16 23:10:05 +02:00
3b5b61b42a
Add ip to username and password log with new format
...
The format is inspired by the one ufw uses.
The output looks now like:
2021/06/02 22:58:01 SRC=127.0.0.1 USERNAME=test PASSWORD=foo
2021-06-16 23:10:05 +02:00
77cd0f8574
Make all output calls use log package
...
Except the output with the credentials. This output should be reworked
in a different commit!
2021-06-16 23:10:05 +02:00
c74442fcc2
Add option to give custom key
2021-06-16 23:09:34 +02:00
a94ccbf744
Init commit
2021-06-16 23:09:13 +02:00