找回密码
 新注册用户
搜索
查看: 6160|回复: 12

[分享] ubuntu9.10/10.4安装telnet学习笔记

[复制链接]
发表于 2010-6-25 16:54:08 | 显示全部楼层 |阅读模式
电脑装ubuntu后拔了显卡,虽然自动运行FAH,但是看不到显示,总觉得心里空落落的,万一出点小问题,又得接显卡和显示器.......

还是安装个telnet方便管理吧。

1、安装xinetd
  1. sudo apt-get install xinetd
复制代码
2、安装telnet守护进程
  1. sudo apt-get install telnetd
复制代码
3、修改配置文件
  1. sudo nano /etc/xinetd.conf
复制代码
使它的内容变成这样(“#”好后的东西可以忽略):
  1. # Simple configuration file for xinetd
  2. #
  3. # Some defaults, and include /etc/xinetd.d/

  4. defaults
  5. {

  6. # Please note that you need a log_type line to be able to use log_on_success
  7. # and log_on_failure. The default is the following :
  8. # log_type = SYSLOG daemon info

  9. # start the insert content
  10. # if I have time, I will add some comments about this part.
  11. instances =60
  12. log_type = SYSLOG authpriv
  13. log_on_success = HOST PID
  14. log_on_failure = HOST
  15. cps = 25 30
  16. # end the insert content
  17. }

  18. includedir /etc/xinetd.d
复制代码
检查无误后ctrl+o保存,在ctrl+x退出编辑程序

4、添加telnet配置:
  1. sudo nano /etc/xinet.d/telnet
复制代码
内容这样的:
  1. #
  2. #
  3. service telnet
  4. {
  5. disable = no
  6. flags = REUSE
  7. socket_type = stream
  8. wait = no
  9. user = root
  10. server = /usr/sbin/in.telnetd
  11. log_on_failure += USERID
  12. }
复制代码
5、完成配置,重启服务:
  1. sudo /etc/init.d/xinetd restart
复制代码
大功告成,可以在windows下命令行或者cmd+r运行:
  1. telnet IP地址
复制代码
登录管理机器了

评分

参与人数 1基本分 +15 收起 理由
金鹏 + 15 精品文章

查看全部评分

回复

使用道具 举报

发表于 2010-6-25 17:49:16 | 显示全部楼层
本帖最后由 zglloo 于 2010-6-25 17:54 编辑

linux telnet在数据传输时,是明文的(通过嗅探 器可以抓到口令与密码)注意安全!  
若是远程用ssh安全些
回复

使用道具 举报

 楼主| 发表于 2010-6-25 18:01:45 | 显示全部楼层
回复 2# zglloo


    呵呵,就我自己集线器内的几台机器,没任何资料,数据都可以奉献,呵呵。
回复

使用道具 举报

发表于 2010-6-25 18:08:27 | 显示全部楼层
养成好习惯,用 The Doorman 保护 sshd 就更安全。

平时端口全部关闭,只有在按照特定的顺序连接特定的端口(这种连接会失败)后,才会临时性针对该 IP 打开你真正想要访问的端口。
回复

使用道具 举报

发表于 2010-6-25 18:28:41 | 显示全部楼层
我们都用ssh.............
回复

使用道具 举报

 楼主| 发表于 2010-6-25 20:49:54 | 显示全部楼层
回复 5# bugfix


    但是ssh要专门安装工具吧?电脑多了,不方便。
回复

使用道具 举报

发表于 2010-6-25 20:55:17 | 显示全部楼层
ssh 安装不需要什么工具的~
连接的话需要客户端  http://www.unix-center.net/?p=10   其中PuTTY和FTerm比较好可以直接设置客户端ssh
回复

使用道具 举报

 楼主| 发表于 2010-6-25 22:33:15 | 显示全部楼层
回复 7# zglloo


    谢谢,可能我没说清楚,就是因为需要客户端,我7,8台电脑就不能随时访问被控机,除非我没个都装客户端......
回复

使用道具 举报

发表于 2010-6-25 22:49:28 | 显示全部楼层
回复 8# eqzero

本地机器啊~ 那还是telnet方便~
回复

使用道具 举报

发表于 2010-6-26 15:05:38 | 显示全部楼层
最近刚把一台ubuntu netbook remix的屏幕摔碎了,,,
回复

使用道具 举报

发表于 2010-6-26 15:07:06 | 显示全部楼层
回复 1# eqzero

围观、学习,将来玩玩
回复

使用道具 举报

发表于 2010-6-26 16:05:57 | 显示全部楼层
还是喜欢
  1. apt-get install ssh
复制代码
回复

使用道具 举报

 楼主| 发表于 2010-6-26 20:05:36 | 显示全部楼层
回复 12# finf


    是,ssh安装简单多了,不过最好还是自己生成一个密钥安全些,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-4-29 11:07

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表