LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3288|回复: 11

关于telnetd

[复制链接]
发表于 2006-4-19 02:46:40 | 显示全部楼层 |阅读模式
我用的是busybox,想做一个小系统,但需要远程管理,所以就想用busybox里的telnetd,但我用# ./busybox telnetd 可以启动,但不能telnet上去,搜了半天都只是选项,不知道他是否使用配置文件,另外想恳请youbest大哥在那个小系统中加入sshd,我真在尝试,还没有成功
发表于 2006-4-19 06:35:17 | 显示全部楼层
Busybox 好像没有配置文件,引自 Busybox  的 documentation
  1. telnetd
  2.     telnetd [OPTION]

  3.     Telnetd listens for incoming TELNET connections on PORT. Options:

  4.             -p PORT listen for connections on PORT (default 23)
  5.             -l LOGIN        exec LOGIN on connect (default /bin/sh)
  6.             -f issue_file   Display issue_file instead of /etc/issue
复制代码

Busybox 的命令基本上可以直接执行的,(无需 ./busybox xxxx),用 telnetd 加入 选项试试

关於 sshd,你按 BLFS 手册上的方法做不行吗?
回复 支持 反对

使用道具 举报

发表于 2006-4-19 08:57:27 | 显示全部楼层
不能登录是不是你的内核里网卡没有配置好呢?
你先ping一下试试,确定网络是否通畅,然后再弄这些服务.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-19 12:34:50 | 显示全部楼层
Post by d00m3d
Busybox 好像没有配置文件,引自 Busybox  的 documentation
  1. telnetd
  2.     telnetd [OPTION]

  3.     Telnetd listens for incoming TELNET connections on PORT. Options:

  4.             -p PORT listen for connections on PORT (default 23)
  5.             -l LOGIN        exec LOGIN on connect (default /bin/sh)
  6.             -f issue_file   Display issue_file instead of /etc/issue
复制代码

Busybox 的命令基本上可以直接执行的,(无需 ./busybox xxxx),用 telnetd 加入 选项试试

关於 sshd,你按 BLFS 手册上的方法做不行吗?
我没有安装这些连接,所以用上面的方法,刚才重新安装了连接,运行
/usr/sbin/telnetd  l
但我自己telnet不上去,ssh是安照blfs做的,不过我用的是youbest写的小系统,安装了zlib,openssl,在配置openssh的时候他说找不到openssl的版本信息,configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***
回复 支持 反对

使用道具 举报

发表于 2006-4-19 13:05:36 | 显示全部楼层
config.log说什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-19 20:40:29 | 显示全部楼层
相关的信息是/ssl
...skipping
|   return 0;
| }
configure:14910: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 -I/usr/local/ssl/include  -L/usr/local/ssl/lib  conftest.c /usr/lib/libcryto.a -lutil -lz -lnsl  >&5
gcc: /usr/lib/libcryto.a: No such file or directory

但  ls -l /usr/lib/
-rw-r--r--    1 root     root      2022926 Apr 19 13:48 libcrypto.a
lrwxrwxrwx    1 root     root           14 Apr 19 13:48 libcrypto.so -> libcrypto.so.0
lrwxrwxrwx    1 root     root           18 Apr 19 13:48 libcrypto.so.0 -> libcrypto.so.0.9.7
-r-xr-xr-x    1 root     root      1254456 Apr 19 13:48 libcrypto.so.0.9.7
-rw-r--r--    1 root     root       306096 Apr 19 13:48 libssl.a
lrwxrwxrwx    1 root     root           11 Apr 19 13:48 libssl.so -> libssl.so.0lrwxrwxrwx    1 root     root           15 Apr 19 13:48 libssl.so.0 -> libssl.so.0.9.7
-r-xr-xr-x    1 root     root       227237 Apr 19 13:48 libssl.so.0.9.7
drwxr-xr-x    6 root     root         4096 Apr 19 13:48 openssl
drwxr-xr-x    2 root     root         4096 Apr 18 13:12 pkgconfig
libcryto和libcrypto差了个p,我改过来重新运行结果是
checking OpenSSL header version... not found
configure: error: OpenSSL version header not found.
我用的是一个小系统,就是youbest写的那个文档里的,
openssl是这样配置的
./config --openssldir=/usr/lib/openssl/ --prefix=/usr shared
openssh是这样的
./configure --prefix=/usr --sysconfdir=/etc/ssh  --libexecdir=/usr/sbin --with-md5-passwords     --with-privsep-path=/var/lib/sshd --without-zlib-version-check
checking OpenSSL header version... not found
configure: error: OpenSSL version header not found.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-19 20:50:55 | 显示全部楼层
OpenSSL-0.9.7i and  OpenSSH-4.3p2
回复 支持 反对

使用道具 举报

发表于 2006-4-19 21:50:21 | 显示全部楼层
两机能 ping 通否?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-22 01:26:54 | 显示全部楼层
可以,结果是
Escape character is '^]'.
Connection closed by foreign host.
回复 支持 反对

使用道具 举报

发表于 2006-4-22 02:59:04 | 显示全部楼层
ping 的结果怎么是这个。?
回复 支持 反对

使用道具 举报

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

本版积分规则

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