|
友堅(jiān)555555">UT-S3C6410開(kāi)發(fā)板telnet
Linux主機(jī)的詳細(xì)設(shè)置
各位,以下是友堅(jiān)UT-S3C6410開(kāi)發(fā)板telnet
Linux主機(jī)的詳細(xì)設(shè)置,應(yīng)通過(guò)初次驗(yàn)證,請(qǐng)大家指教。www.urbetter.com
1.關(guān)于telnet命令的相關(guān)信息
[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. 友堅(jiān)UT-S3C6410開(kāi)發(fā)板telnet登錄到其他提供了telnet服務(wù)器的主機(jī)
---確認(rèn)開(kāi)發(fā)板的ip地址,確認(rèn)開(kāi)發(fā)板能連接Internet
ifconfig
ping 內(nèi)網(wǎng)的ip
;ping 外網(wǎng)的ip
---設(shè)置路由ip:route add default gw 192.168.1.1
---登錄:telnet 202.112.7.137
各位,以下是友堅(jiān)UT-S3C6410開(kāi)發(fā)板0 telnet
Linux主機(jī)的詳細(xì)設(shè)置,應(yīng)通過(guò)初次驗(yàn)證,請(qǐng)大家指教。www.urbetter.com
----------------------------------------------------------------------------------------------------------------------
3.
友堅(jiān)UT-S3C6410開(kāi)發(fā)板設(shè)置好網(wǎng)絡(luò),登錄Internet
---設(shè)置網(wǎng)關(guān):route add default gw 192.168.1.1(根據(jù)實(shí)際情況設(shè)定)
---確認(rèn)連通Internet:ping 202.112.17.137
---設(shè)置域名解析服務(wù)器:
查看你pc機(jī)上的DNS服務(wù)器的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.
友堅(jiān)UT-S3C6410開(kāi)發(fā)板登錄Linux主機(jī)
4.1Linux主機(jī)安裝telnet服務(wù)
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并加入以下內(nèi)容:
# 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
----------------------------------------------------------------------------------------------------------------------
各位,以下是開(kāi)發(fā)板UT-S3C6410開(kāi)發(fā)板 telnet
Linux主機(jī)的詳細(xì)設(shè)置,應(yīng)通過(guò)初次驗(yàn)證,請(qǐng)大家指教。www.urbetter.com
---------------------------------------------------------------------------------------------------------------------
4.3sudo vi /etc/xinetd.d/telnet并加入以下內(nèi)容:
# 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. 重啟機(jī)器或重啟網(wǎng)絡(luò)服務(wù)sudo /etc/init.d/xinetd restart
6. 使用TELNET客戶端遠(yuǎn)程登錄;
ifconfig -a
顯示本機(jī)地址。
來(lái)源:友堅(jiān)恒天技術(shù)中心http://www.urbetter.com/ |
|