首页 | Linux 基础 | 资讯动态 | Linux 应用 | Linux 服务器 | Linux 开发 | Linux 安全 | 专题 | 联盟论坛
  当前位置:主页>Linux 服务器>文章内容
Debian Linux操作系统下启动远程Telnet服务
来源:http://www.unix5.com 作者:riechelr_hl 发布时间:2007-08-01  

root@2[/]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:10:A4:9F:2B:FF

inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::210:a4ff:fe9f:2bff/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:106942 errors:0 dropped:0 overruns:0 frame:0

TX packets:103319 errors:0 dropped:0 overruns:0 carrier:0

collisions:9 txqueuelen:1000

RX bytes:110201058 (105.0 MiB) TX bytes:11096727 (10.5 MiB)

Interrupt:11 Base address:0x4800

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:4410 errors:0 dropped:0 overruns:0 frame:0

TX packets:4410 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:1030232 (1006.0 KiB) TX bytes:1030232 (1006.0 KiB)

 

我们现在来连接一下

 

root@2[/]# telnet 192.168.1.254

Trying 192.168.1.254...

Connected to 192.168.1.254.

Escape character is '^]'.

lcnja.8800.org login: root

Login incorrect

 

lcnja.8800.org login: lcnja

Password:

Last login: Mon Sep 27 20:51:33 2004 from localhost.localdomain on pts/3

Linux debian 2.6.8-1-686 #1 Tue Sep 14 00:22:58 EDT 2004 i686 GNU/Linux

 

The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.

 

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

lcnja@lcnja:~$

从上面我们可以看到我们已经连接成功了,但是使用root连接的时候会失败,因为默认的安全设置是限制root用户使用telnet连接主机的

 

 

本来因为telnet是明文传输的,所以处于安全考虑才限制了root从telnet登陆,如果你需要使用,那么如下修改

 

 

root@2[/]# nano /etc/pam.d/login

#

# The PAM configuration file for the Shadow `login' service

#

# NOTE: If you use a session module (such as kerberos or NIS+)

# that retains persistent credentials (like key caches, etc), you

# need to enable the `CLOSE_SESSIONS' option in /etc/login.defs

# in order for login to stay around until after logout to call

# pam_close_session() and cleanup.

#

 

# Outputs an issue file prior to each login prompt (Replaces the

# ISSUE_FILE option from login.defs). Uncomment for use

# auth required pam_issue.so issue=/etc/issue

 

# Disallows root logins except on tty's listed in /etc/securetty

# (Replaces the `CONSOLE' setting from login.defs)

#把下面在行注释掉

# auth requisite pam_securetty.so

 

# Disallows other than root logins when /etc/nologin exists

# (Replaces the `NOLOGINS_FILE' option from login.defs)

auth requisite pam_nologin.so

 

# This module parses /etc/environment (the standard for setting

共3页: 上一页 [1] 2 [3] 下一页
 
如果您对本文有任何疑问或者建议,请到论坛讨论区发表您的意见: >> 论坛入口
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
  热点文章
·Linux系统下Apache服务器设置与
·在Linux x86上安装Oracle数据库1
·Linux操作系统下IPTables配置方
·Linux系统下SVN服务器的搭建过程
·Linux架设代理服务器(1)
·Linux系统下的Oracle数据库编程
·Linux 服务器集群系统
·Linux下免费数据库PostgreSQL开
·高端Linux操作系统服务器技术之
·在Ubuntu Linux 上架设Web服务器
· 在 Linux 上构建 Web spider
·用LVS在Linux上搭建负载均衡的集
  相关文章
·架设基于Linux(2.6.14内核)服务
·Linux服务器策--简说Web站点的内
·Oracle开发应用
·在UnixWare7.1.1上安装Oracle8i
·在slackware 10下安装Oracle 10
·在Linux x86上安装Oracle数据库1
·VMWare上Oracle 10g R2的最简安
·Linux系统下SVN服务器的搭建过程
·高端Linux操作系统服务器技术之
·浅析Apache服务器中SSI和CGI设定
·Linux DNS的负载均衡及子域委派
·Oracle PL/SQL编程风格与系统性

本站信息源至:互联网络,均为学习,交流所用,如有版权问题,请联系我们.
站长QQ:397422079 E_mail:riechelr_hl@unix5.com
转载本站内容请注明原作者名.谢谢!