Re: [opensuse] connection refused on telnet command
On 23/09/2018 22.02, don fisher wrote:
On 9/23/18 6:40 PM, Carlos E. R. wrote> So, in one terminal you did> cer@Legolas:~> nc -l -u 23 | tee ~/netconsole.log> nc: Permission denied> cer@Legolas:~>> So I repeat as root
Legolas:~ # nc -l -u 23 | tee ~/netconsole.log and in another terminal I do: cer@Legolas:~> telnet dfpcxx telnet: dfpcxx: Name or service not known cer@Legolas:~> telnet localhost Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused cer@Legolas:~>
As you can see, a lot of info is missing to allow me to reproduce the situation, and I had to make assumptions...
I have a guess at what is happening, but first I want to know if what I assumed is correct.
I did go to yast2 and added telnet server, telent-server, as well as telnet. I tried duplicating your commands:
sudo telnet localhost Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
So you are getting the responses that I did, except that I did not receive the nc:permission denied message that you reported. Don't understand what is going on there.
That one is obvious and it is one of the reasons I asked you to post the full comand you used directly from the terminal without editing. I tried first as plain as user and then as root. This can be clearly seen in what I posted but not on your post.
My question is why are we getting connection refused messages on the telnet command?
You are using udp. Legolas:~ # nc -l 23 �������� ��!��"��'����#hello cer@Legolas:~> telnet localhost Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. hello -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
On 9/23/18 7:14 PM, Carlos E. R. wrote:
telnet localhost Thanks. I get communication now. I will try to understand the difference between now and then. Just root?
Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 23/09/2018 22.24, don fisher wrote:
On 9/23/18 7:14 PM, Carlos E. R. wrote:
telnet localhost Thanks. I get communication now. I will try to understand the difference between now and then. Just root?
No; the nc command runs as root (or sudo). But you were also using udp, and telnet works on tcp. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
participants (2)
-
Carlos E. R.
-
don fisher