开发板UT-S3C6410 telnet Linux主机的详细设置【友坚资料库】
时间:2010-11-22
来源:互联网
以下是开发板UT-S3C6410 telnet Linux主机的详细设置,应通过初次验证,请大家指教。www.urbetter.com
1.关于telnet命令的相关信息
[root@urbetter /]# telnet --help
BusyBox v1.13.3 (2009-03-25 15:48:45 CST) multi-call binary
Usage: telnet [-a] [-l USER] HOST [PORT]
Connect to telnet server
Options:
-a Automatic login with $USER variable
-l USER Automatic login as USER
2.开发板telnet登录到其他提供了telnet服务器的主机
---确认开发板的ip地址,确认开发板能连接Internet
ifconfig
ping 内网的ip ;ping 外网的ip
---设置路由ip:route add default gw 192.168.1.1
---登录:telnet 202.112.7.137
----------------------------------------------------------------------------------------------------------------------
3.开发板设置好网络,登录Internet
---设置网关:route add default gw 192.168.1.1(根据实际情况设定)
---确认连通Internet:ping 202.112.17.137
---设置域名解析服务器:
查看你pc机上的DNS服务器的ip地址 202.96.128.96
vim /etc/resolv.conf 添加 nameserver 202.96.128.96
或者rm /etc/resolv.conf ;touch /etc/resolv.conf;
echo nameserver 202.96.128.96 >> /etc/resolv.conf
-------------------------------------------------------------
4.开发板登录Linux主机
4.1Linux主机安装telnet服务
sudo apt-get install xinetd telnetd
修改配置
sudo vi /etc/inetd.conf并加入以下一行
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
4.2sudo vi /etc/xinetd.conf并加入以下内容:
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
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
}
includedir /etc/xinetd.d
----------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
4.3sudo vi /etc/xinetd.d/telnet并加入以下内容:
# default: on
# description: The telnet server serves telnet sessions; it uses
# 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
6. 使用TELNET客户端远程登录;
ifconfig -a 显示本机地址。
1.关于telnet命令的相关信息
[root@urbetter /]# telnet --help
BusyBox v1.13.3 (2009-03-25 15:48:45 CST) multi-call binary
Usage: telnet [-a] [-l USER] HOST [PORT]
Connect to telnet server
Options:
-a Automatic login with $USER variable
-l USER Automatic login as USER
2.开发板telnet登录到其他提供了telnet服务器的主机
---确认开发板的ip地址,确认开发板能连接Internet
ifconfig
ping 内网的ip ;ping 外网的ip
---设置路由ip:route add default gw 192.168.1.1
---登录:telnet 202.112.7.137
----------------------------------------------------------------------------------------------------------------------
3.开发板设置好网络,登录Internet
---设置网关:route add default gw 192.168.1.1(根据实际情况设定)
---确认连通Internet:ping 202.112.17.137
---设置域名解析服务器:
查看你pc机上的DNS服务器的ip地址 202.96.128.96
vim /etc/resolv.conf 添加 nameserver 202.96.128.96
或者rm /etc/resolv.conf ;touch /etc/resolv.conf;
echo nameserver 202.96.128.96 >> /etc/resolv.conf
-------------------------------------------------------------
4.开发板登录Linux主机
4.1Linux主机安装telnet服务
sudo apt-get install xinetd telnetd
修改配置
sudo vi /etc/inetd.conf并加入以下一行
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
4.2sudo vi /etc/xinetd.conf并加入以下内容:
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
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
}
includedir /etc/xinetd.d
----------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
4.3sudo vi /etc/xinetd.d/telnet并加入以下内容:
# default: on
# description: The telnet server serves telnet sessions; it uses
# 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
6. 使用TELNET客户端远程登录;
ifconfig -a 显示本机地址。
作者: smile陶霖 发布时间: 2010-11-22
资料来源:http://www.urbetter.com友坚科技
作者: smile陶霖 发布时间: 2010-11-22
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28