https://bugzilla.mindrot.org/show_bug.cgi?id=3704

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
(In reply to Nikola from comment #1)
> [...]
> You can use a unix socket instead as it will be easier to track.
If possible, I'd also recommend UNIX sockets. They are much safer then
127.0.0.1. See also bug 3695
Comments say even Windows supports UNIX sockets nowadays:
https://lwn.net/Articles/984838/

Alternatively let not SSH find the free port, but use "ss".

#!/bin/bash
port="10000"  # start searching here
while [ -n "$(ss -tan4H "sport = ${port}")" ]; do
  port="$((port+1))"
done

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to