Josh,
This answers half my question: I wanted to know about putting sshd in
to inetd.conf (and have successfully done this, thanks) ****AND**** I
want to have an ssh entry, also. Here is what I have in /etc/services
on Client_Node and Server_Node:
#Begin
sshd 22/tcp #secure shell
# Tom's secure shell and halfchat testing
halfchat 7900/tcp #Tom's halfchat program
shalfchat 7901/tcp #Secure halfchat
#End
Consider the following two lines from /etc/inetd.conf on Server_Node
#Begin
ssh stream tcp nowait root /bin/sshd sshd -i
halfchat stream tcp nowait root /bin/halfchat halfchat SERVER 0
#End
On Client_Node, I can utter something like:
$ halfchat Server_Node halfchat
and I connect fine because there is not ssh in the way. I can also do
something like:
$ ssh -q -x -l root Server_Node
and I have set that to work with no password prompting (It does).
This connects just fine. What I want is to utter something like
this on Client_Node (note the S):
$ halfchat localhost shalfchat
and have the Client_Node inetd fire up secure shell with the correct
parameters to invoke halfchat at the Server_Node without the halfchat
at the localhost being aware that anything happened.
Using the -L switch means that I must have ssh running and have *IT* be
listening for the connection on the local host. I don't want to do
this. I want inetd to do it for me. I've tried something like
shalfchat stream tcp nowait root /bin/ssh ssh -q -x -l root Server_Node /bin/halfchat
SERVER 0
which makes the halfchat application simply read from stdin/stdout,
but this causes the connection to close prematurely or hang.
What I really want is to inform the sshd on Server_Node to
fire up a connection to localhost halfchat and then let the inetd
there take care of firing up halfchat. This will allow me to
do some simple A/B tests.
What should the line in inetd.conf be? Gotta meet with the boss
in about an error to tell him where I am with this. Help!!
--T