LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   telnet remotely (https://www.linuxquestions.org/questions/linux-networking-3/telnet-remotely-874091/)

ted_chou12 04-10-2011 05:49 AM

telnet remotely
 
Hi, I have setup a dynamic dns: hostname.cz.cc host, I can access ftp, webserver..etc no problem, but when I try to telnet, it doesn't appear to be right. I have the telnet port 23 enabled.
When telnet locally, via IP eg. 192.168.x.x, or host name "nas" both works fine:
Code:


sh-3.1# telnet nas
Trying 192.168.2.101...
Connected to nas.
Escape character is '^]'.

nas login: root
Password:

BusyBox v1.14.2 (2010-06-21 19:41:28 BRT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Works fine; but when telnet remotely:
Code:

sh-3.1# telnet hostname.cz.cc
Trying A.B.C.xx...
Connected to hostname.cz.cc.
Escape character is '^]'.
login: root
Login incorrect

Why is that?
the "nas login" became "login" and I tried many times but doesn't work :/
THanks,
Ted

ted_chou12 04-10-2011 05:59 AM

sorry, my bad, didn't double check, i added the port to the router but didn't click on the enable button. sorry XD

unSpawn 04-10-2011 08:26 AM

You should not remote telnet and certainly not access services as root user: use SSH as unprivileged user. If your NAS doesn't support SSH then at least ssh into your bastion host as unprivileged user and telnet from within your own LAN range.


All times are GMT -5. The time now is 02:25 AM.