gassan
November 24, 2016, 4:10pm
1
Hello.
subj or what can I use instead?
1 Like
aczlan
November 24, 2016, 8:05pm
2
There are many telnet clients out there. On Windows, I use Putty ( http://www.putty.org/ ) for a telnet client and WinSCP ( https://winscp.net/eng/download.php ) to move files back and forth.
Aaron Z
gassan
November 24, 2016, 8:13pm
3
I can access to router. I would like to have something like "opkg install telnetc". Is it possible?
stangri
November 24, 2016, 11:00pm
4
I'm sure that generally you'd be encouraged to use ssh instead. However opkg find *telnet*
lists a few options, have you tried them?
gassan
November 25, 2016, 10:27am
5
There is nothing which allows for example "telnet IP 25".
I could find only mac-telnet.
1 Like
hnyman
November 25, 2016, 10:40am
6
Previously telnet client was part of the busybox multi-utility, but when the "telnet server" was disabled in 2015 and ssh was set to be the only login method, also the "telnet client" capability was removed.
https://github.com/openwrt/openwrt/commit/a35a7afc9f15b4c084c996ab0dbcd833b45f30d5
If you want to have telnet client easily available, compiling a firmware that has modified busybox options so that telnet is again in busybox is maybe the easiest option.
(I have not tried to look for separate telnet packages.)
1 Like
And I am a huge fan of Cmder (www.cmder.net ) on Windows. It offers all that Putty does, with an attractive GUI, built-in Linux-like shell and utilities, both telnet and ssh clients, and, oh, by the way, free.
1 Like
_mt
March 2, 2017, 11:46am
8
There is netcat (nc
) in the Image.
You can use netcat like telnet.
By default the newline char is \n
but you can send \r\n
using CTRL+V + CTRL+M in the terminal.
For debugging SMTP/IMAP etc.pp it works out of the box:
TCP: nc host port
UDP: nc -u host port
(this does not seem to supported out of the box)
4 Likes
xssa
June 25, 2017, 11:49am
9
There is simple stand alone telnet client.
From 01baec52474c3a07706e4b2bc2d798e88be5bf4e Mon Sep 17 00:00:00 2001
From: Serg Studzinskii
Date: Sat, 24 Jun 2017 21:29:42 +0300
Subject: [PATCH] simpletelnet: add new package
Simple telnet client written in C due busybox telnet applet is disabled by default.
Signed-off-by: Serg Studzinskii
net/simpletelnet/Makefile | 44 ++++++++++++++++++++++
net/simpletelnet/patches/100-musle-compat.patch | 10 +++++
.../patches/200-fix-c++-dependences.patch | 18 +++++++++
3 files changed, 72 insertions(+)
create mode 100644 net/simpletelnet/Makefile
create mode 100644 net/simpletelnet/patches/100-musle-compat.patch
create mode 100644 net/simpletelnet/patches/200-fix-c++-dependences.patch
diff --git a/net/simpletelnet/Makefile b/net/simpletelnet/Makefile
new file mode 100644
index 0000000..4e6309c
--- /dev/null
+++ b/net/simpletelnet/Makefile
@@ -0,0 +1,44 @@
+# Copyright (C) 2006-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=simpletelnet
+PKG_VERSION:=0.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=https://sourceforge.net/projects/simpletelnet/files/simpletelnet/
+PKG_MD5SUM:=e7e3a6ca5a8f8aeabf7a29939b6a2cd2
+PKG_LICENSE:=GPL-2.0
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/simpletelnet
SECTION:=net
CATEGORY:=Network
TITLE:=Small telnet client for embedded systems
DEPENDS:=+libpthread
URL:=
+endef
+TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE=1
+
+define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
COPT_FLAGS="$(TARGET_CFLAGS)" \
KERNEL_DIR="./include/linux"
+endef
+
+define Package/simpletelnet/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/stelnet $(1)/usr/bin/telnet
+endef
+$(eval $(call BuildPackage,simpletelnet))
diff --git a/net/simpletelnet/patches/100-musle-compat.patch b/net/simpletelnet/patches/100-musle-compat.patch
new file mode 100644
index 0000000..9526f5c
--- /dev/null
+++ b/net/simpletelnet/patches/100-musle-compat.patch
@@ -0,0 +1,10 @@
+--- a/stelnet.c
++++ b/stelnet.c
+@@ -24,6 +24,7 @@
#include <arpa/inet.h>
#include <termios.h>
#include <fcntl.h>
++#include <sys/select.h>
#define DO 0xfd
#define WONT 0xfc
diff --git a/net/simpletelnet/patches/200-fix-c++-dependences.patch b/net/simpletelnet/patches/200-fix-c++-dependences.patch
new file mode 100644
index 0000000..797590f
--- /dev/null
+++ b/net/simpletelnet/patches/200-fix-c++-dependences.patch
@@ -0,0 +1,18 @@
+--- a/Makefile.in.orig 2013-10-15 20:42:32.000000000 +0300
++++ b/Makefile.in 2017-06-11 15:52:39.799827945 +0300
+@@ -8,13 +8,13 @@
C_FILE_LIST = $(wildcard *.c)
OBJS = $(C_FILE_LIST:.c=.o)
BINOBJS = $(foreach file, $(OBJS), $file)
+-CFLAGS += -ggdb
++CFLAGS +=
%.o : %.c $(H_FILE_LIST)
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
stelnet: $(OBJS)
+- $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:; rm -f *.o stelnet
--
2.7.4
1 Like
diizzy
June 25, 2017, 12:10pm
10
Rejoyce, there's a telnet client soon in the repo
openwrt:master
← diizzyy:patch-61
opened 04:55PM - 24 Jun 17 UTC
Diizzy,
I'd like to be able to install your package.
I see the last comment on the pull request is:
@wertarbyte
Do you still want this?
So I guess this means it's not going to be added to the repository of packages?
Thanks.
Scott
There is already a command to use telnet in LEDE. The command nc $IP $PORT
can be used to ssh or telnet from the router itself.
nc 192.168.2.1 23
nc 192.168.3.1 22
2 Likes
diizzy
August 7, 2018, 7:45am
13
As I'm not really interested in being a maintainer which seems for be a requirement it remains unmerged, it does still work perfectly fine and is most likely "effortless" to maintain is there's nothing to update possibly apart from the breakage newer versions of GCC causes...