Slow telnet response for login

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
dimitrip
Posts: 8
Joined: Wed Sep 23, 2015 12:40 pm

Slow telnet response for login

Post by dimitrip »

Hi,
The time it takes a rasPi B (1000MHz) to show the login message after a telnet request is consistently around 40 seconds, much longer than I am used to in similar scenarios.
Is there a reason for that? Can we have a faster response? Maybe a problem for us when accessing over 3G.
Thanks in advance.
Pilovali
Posts: 81
Joined: Sat Oct 03, 2015 7:11 pm
Location: The Netherlands
Contact:

Re: Slow telnet response for login

Post by Pilovali »

Are you telnetting into the Pi or from the Pi to an other server?
dimitrip
Posts: 8
Joined: Wed Sep 23, 2015 12:40 pm

Re: Slow telnet response for login

Post by dimitrip »

Hi, into the Pi, from a variety of desktops/laptops just to make sure, same result each time.
Pilovali
Posts: 81
Joined: Sat Oct 03, 2015 7:11 pm
Location: The Netherlands
Contact:

Re: Slow telnet response for login

Post by Pilovali »

dimitrip wrote:Hi, into the Pi, from a variety of desktops/laptops just to make sure, same result each time.
Mmm... it's working fine for me.
https://share.pilovali.nl/2015-10-13_13-05-27.mp4
(Can't login as root due to security settings, I guess)

I highly recommend NOT to use Telnet because it's old and very insecure. I recommend that you use SSH, it's build-in to DietPi and easy to use.

I think it's caused by your 3G connection. Can you run a ping or tracert?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Slow telnet response for login

Post by Fourdee »

Pilovali wrote: I highly recommend NOT to use Telnet because it's old and very insecure. I recommend that you use SSH, it's build-in to DietPi and easy to use.

I think it's caused by your 3G connection. Can you run a ping or tracert?
I have to agree with Pilovali on this one. SSH is the recommended way to access a remote terminal, and, sounds like the delay could be caused by your 3G connection. I'd advise running the ping and traceroute tests Pilovali mentioned above.

All you need to remote terminal access your DietPi system is an SSH client. We provide a pre-setup client for Windows (Kitty), which is available here: https://www.fosshub.com/KiTTY.html
All you will need to do is change the IP address to your RPi before connecting.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Seqway

Re: Slow telnet response for login

Post by Seqway »

Hello,
because of some reasons i need to login to an Pi which is running with Dietpi via telnet connection. How can i install this or what is needed ?By now i get a connection refused --> telnet: Unable to connect to remote host

Thanks in advance
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Slow telnet response for login

Post by k-plan »

Hi,

let me google this for you:

- Install Telnet SERVER:

Code: Select all

apt-get install telnetd

- Root login via Telnet:

Code: Select all

nano  /etc/securetty
- add at the end the lines:

Code: Select all

### telnet root login
pts/0
pts/1
pts/2
- Then ==>> Restart Telnet Server:

Code: Select all

/etc/init.d/openbsd-inetd restart

https://packages.debian.org/jessie/telnetd

http://www.idevelopment.info/data/Unix/ ... Root.shtml

http://www.technix.in/enable-telnet-linux-server/
Note: Telnet in is insecure protocol and it is recommended that you use ssh server.

WARNING! Installing telnet on your server makes the server open to an un-encrytpted communications, it’s not recommended to use telnet, use Secure (SSH).

Telnet Server installation

In Debian/Ubuntu

Code: Select all

user@techinx$ sudoapt-get install telnetd
How to enable root login from telnet server

Edit /etc/securetty file, In the end of file add pts/0 to enable one telnet session for root. if you need to open more telnet session for root and add more pts/1 pts/2 and so on.

Restart services, you are done!.

Note that this is a massive security threat and may hurt your system
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Seqway

Re: Slow telnet response for login

Post by Seqway »

wou thank you very much.

telnetd was already installad but didn't got the login ... now it works fine :-) thank you very much
Post Reply