If you want to intercept an SSH connection, i.e. catch data from the SSH channel, process it and then send further,
you should create a descendant of TElSSHForwardingIntercept and perform all operations inside the descendant.
Call
ChannelRead and
SocketRead to get data from the SSH channel.
Then process the data and send it further using
WriteToSocket and
WriteToChannel methods, accordingly.