Maybe have a look at nc (man nc)...

Thank you . It can connect to remote node port 23. But how can I send command to remote node and capture its log?