컴퓨터활용/유닉스

telnetd install in Ubuntu Linux

멜번초이 2014. 10. 14. 07:02
반응형

1.Install telnet use this command in terminal(Applications/Accessories/Terminal):



stephen@stephen-LifeBook-S7110:~$ sudo apt-get install xinetd telnetd
[sudo] password for stephen:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  telnetd xinetd
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 140 kB of archives.
After this operation, 438 kB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com/ubuntu/ trusty/main xinetd i386 1:2.3.15-3ubuntu1 [102 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu/ trusty/universe telnetd i386 0.17-36build2 [37.8 kB]
Fetched 140 kB in 7s (17.9 kB/s)                                              
Selecting previously unselected package xinetd.
(Reading database ... 195247 files and directories currently installed.)
Preparing to unpack .../xinetd_1%3a2.3.15-3ubuntu1_i386.deb ...
Unpacking xinetd (1:2.3.15-3ubuntu1) ...
Selecting previously unselected package telnetd.
Preparing to unpack .../telnetd_0.17-36build2_i386.deb ...
Unpacking telnetd (0.17-36build2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up xinetd (1:2.3.15-3ubuntu1) ...
xinetd start/running, process 3467
Processing triggers for ureadahead (0.100.0-16) ...
Setting up telnetd (0.17-36build2) ...
Adding user telnetd to group utmp
Note: xinetd currently is not fully supported by update-inetd.
      Please consult /usr/share/doc/xinetd/README.Debian and itox(8).
stephen@stephen-LifeBook-S7110:~$


2.Edit /etc/inetd.conf using your favourite file editor with root permission,add this line:

telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd

3.Edit /etc/xinetd.conf,make its content look like following:


# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}



4.You can change telnet port number by edit /etc/services with this line:

telnet        23/tcp 

5.If you’re not satisfied with default configuration.Edit etc/xinetd.d/telnet, add following:

# default: on
# description: The telnet server serves telnet sessions; it uses
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}


6.Use this command to start telnet server:

sudo /etc/init.d/xinetd restart


<ref site : http://ubuntuguide.net/install-and-enable-telnet-server-in-ubuntu-linux>


반응형

'컴퓨터활용 > 유닉스' 카테고리의 다른 글

리눅스에서 kitchen 설치  (0) 2014.10.16
ftp server install in Ubuntu Linux  (0) 2014.10.14
Locale value syntax  (0) 2014.06.13
유닉스 쉘에서 전일 날짜를 구하는 법  (0) 2014.05.23
AUTH_MAXTRIES clear  (0) 2013.12.16