I saw a curious thing in IDS logs recently. It was a report of an outgoing connection that showed the parent process as /usr/sbin/sshd -R
.
I am aware of the -R
argument to ssh
(client) for remote port forwarding, but have never seen a -R
option to the sshd
daemon.
No -R
appears in man sshd
. What does this argument do?
Reviewing the source code, the
-R
is an undocumented flag which SSHD uses to indicate to a child process that it has been re-executed in order to re-initialze randomization buffers, etc.Quoting Jenny D from this answer to "Why does sshd requires an absolute path?":
The
-R
is added to the a copy of the command line arguments passed whensshd
will re-execute itself: