I want to know when the telnet command launched from machine A cannot establish connection with machine B on port 80 is there any trace in the system logs from machine B. If so, in which log file?
I'm not clear on this. Do you mean a login failure? Or something else, like a network issue? What happens is specific to the error, but your question is so general I have no clue what you want.
# telnet machineB 80
Trying machineB...
telnet: Unable to connect to remote host: Connection refused
Afterwards I go on machineB. Will I be able to find any trace of this telnet attempt? If so, where ?
---------- Post updated at 07:29 AM ---------- Previous update was at 07:25 AM ----------
As a side note:
There's no communication problem between these 2 machines. I can have a succesfully telnet command from machineA to machineB on a different port. I can also ssh between these 2 machines. My only problem is when the respective process on machineB does not listen on port 80. When that happens (and I detect that woth a telnet from machineA) will I be able to find the trace of that telnet attempt on the destination machine (machineB) ?
PPS:
I do not want to find out why the telnet command fails. I only want to know how/where can I trace these failed telnet attempts on the destination machine (machineB).