Telnet

From ArmadeusWiki
Revision as of 13:30, 6 December 2008 by JulienB (Talk | contribs) (Usage)

Jump to: navigation, search

From Wikipedia:
"Telnet (Telecommunication network) is a network protocol used on the Internet or local area network (LAN) connections. It was developed in 1969 beginning with RFC 15 and standardized as IETF STD 8, one of the first Internet standards. Typically, telnet provides access to a command-line interface on a remote machine.
The term telnet also refers to software which implements the client part of the protocol."

Installation

Telnet client and server are installed by default on the standard Armadeus rootfs. (Included in Busybox).
As it's not a good idea to log in as root through Telnet, create a user that you will use when connecting:

# adduser guest
Changing password for guest
New password:
Retype password:
Password for guest changed by root

Usage

Target

Telnet server (telnetd) is launched by inetd when someone is trying to access port 23. This behaviour can be configured in /etc/inetd.conf:

# cat /etc/inetd.conf
23      stream  tcp     nowait  root    /usr/sbin/telnetd telnetd -l /bin/login

If so you just have to launch inetd at the start of your system.

Host

When you're sure that inetd is running on your target, launch the connection that way:

[ ]$ telnet 192.168.0.10
Trying 192.168.0.10...
Connected to 192.168.0.10.
Escape character is '^]'.
armadeus login: guest
Password:
$ uname -a       (to check you're really on your board ;-) )
Linux armadeus 2.6.27.2 #1 PREEMPT Thu Dec 4 14:09:27 CET 2008 armv4tl unknown

Links