kill running SSHD server first
ENDTCPSVR SERVER(*SSHD)
then call shell
CALL QP2TERM
start SSHD server in debug mode
/QOpenSys/QIBM/ProdData/SC1/OpenSSH/sbin/sshd -d
in shell you should see something like this
/QOpenSys/QIBM/ProdData/SC1/OpenSSH/sbin/sshd -d
debug1: sshd version OpenSSH_8.0, OpenSSL 1.1.1k 25 Mar 2021
debug1: private host key #0: ssh-rsa SHA256:YvUpNrnJZWTr/lsOOElCZcCHZA6raCTnbgze2odHOOI
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:vYc9HrB9jQVN1uWKIkn2vjOJlKSsBdiP5zrHS8EPX8g
debug1: private host key #2: ssh-ed25519 SHA256:hxygl1R9ZA8knkXkiaPVYAlq50gAed1vu+N1f5Q8aZU
debug1: setgroups() failed: Not owner
debug1: rexec_argv[0]='/QOpenSys/QIBM/ProdData/SC1/OpenSSH/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Server will not fork when running in debugging mode.
now you can connect sshd from ssh client ...
and in debug console you can check new entries