您的位置:首页 > 运维架构 > Linux

Linux telnet远程登录操作

2014-05-17 20:39 519 查看
telnet

(如果不行 可以却换root帐户试试 su - root)

1.安装telnet-server

sudo dpkg -i xinetd_1%3a2.3.14-7ubuntu3_i386.deb

sudo dpkg -i telnetd_0.17-36build1_i386.deb

如果连网的情况下可以sudo apt-get install telnet进行安装

2.设置一下ip

这步不做(sudo ifconfig eth0 192.168.1.222 netmask 255.255.255.0 )

3.修改/etc/xinetd.conf配置文件

vim /etc/xinetd.conf

加入如下内容:

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. 修改/etc/xinetd.d/telnet配置文件

vim /etc/xinetd.d/telnet

加入如下内容:

# default: on

# description: The telnet server serves telnet sessions; it users \

# 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

}

5.重启网络服务

sudo /etc/init.d/xinetd restart

sudo service xinetd restart

6.打开windows命令行 telnet 192.168.1.222
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: