LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Telnet problem (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-problem-4175492566/)

coolx 01-25-2014 05:41 PM

Telnet problem
 
Hi,
I searched lots of stuff but I couldn't any solutions.
The problem is, I want to run "telnet" command from my server to test another server's ports. For example "telnet 192.168.2.1 8080"

So I installed RedHat 6.5 but telnet command is not working. So I try to install with "yum install telnet" but redhat server isn't licensed yet.

So how may I able to activate "telnet" command on server?

(ps : To clarify, I don't want to connect my server via telnet.)

regards.

haertig 01-25-2014 06:51 PM

You pretty much never want to run a telnet server on your box (too usecure). Of course, you don't need the server daemon running to invoke an OUTGOING session as you are doing. But still, even having the server installed, and possibly turned on by default with the installation - bad.

You might consider using "netcat" for these kind of port tests instead of telnet. The program is called "netcat", but the command line you invoke is "nc".

Consider using the command below, where the XXX's are the IP address, and the ZZZ's are the port
Quote:

nc -z -v XXX.XXX.XXX.XXX ZZZ

chrism01 01-27-2014 12:42 AM

The telnet client (which is what you want) isn't installed by default, but it is (should be ?) somewhere on the Install media.
Ypu should be able to install it by activating the Local Media repo entry.


All times are GMT -5. The time now is 04:12 PM.