配置telnetd

王朝other·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

虽说ssh比较安全,但是到一台别人的电脑上想改点什么配置就得下一个PuTTY或者SecureCRT实在是不方便,于是今天中午抽空给服务器上装telnetd服务,,

Debain的系统真是方便,因为telnet是依靠xinetd起来的服务,所以

sudo apt-get install xinetd telnetd就OK了。

然后再改一下/etc/xinetd.conf如下:

defaults

{

instances = 60

log_type = SYSLOG authpriv

log_on_success = HOST PID

log_on_failure = HOST

cps = 25 30

}

includedir /etc/xinetd.d

然后再vi /etc/xinetd.d/telnet

service telnet

{

disable = no

flags = REUSE

socket_type = stream

wait = no

user = root

server = /usr/sbin/in.telnetd

log_on_failure += USERID

}

最后sudo /etc/init.d/xinetd restart重启一下xinetd就大功告成了!

不过telnet登录上去的时候系统提示:Ubuntu 5.10 "Breezy Badger localhost.localdomain觉得太傻了。。怎么修改呢,man了一下telnetd,她告诉我修改/etc/issue.net就可以了。。

vi /etc/issue.net

里面只有一句:Ubuntu 5.10 "Breezy Badger" %h,研究一下转义字符

man issue.net

很快便有了答案:

%t - show the current tty

%h - show the system node name (FQDN)

- show the name of the NIS domain

%d - show the current time and date

%s - show the name of the operating system

%m - show the machine (hardware) type

%r - show the operating system release

%v - show the operating system version

%% - display a single ’%’ characte

于是我依样画葫芦写了一个:

Hi, Welcome to Login MYSUN.ORG Server! Now, You're at the no.%t tty,

The current time and date on this server is: %d

试了试。。觉得不错,很COOL,这样,服务器需要的配制就基本上完工了。。

晚上碰到owl师兄。。被批评对待mysun主页太草率了。。于是立马就改。。

做了一下临时主页,感觉样子还蛮大气的,嘿嘿。然后有架上了webftp给大伙传传临时文件,当免费的网络U盘用。。

还用neatpic做了个目录直读的相册。。不过有个缺点,就是用户请求预览整个目录的时候,会有2/3秒(根据照片数量多少)服务器CPU满载的。。

打算再过一段日子,服务器稳定的话,把blog迁回来自己的服务器,不放su上了。。毕竟那是公家的地方。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航