〖Linux〗使用root权限,telnet登录开发板


1. 在开发板上的/etc/securetty添加

pts/0
pts/1
pts/2
pts/3

 2. 设定开发板的root密码

[root@Link /root]# passwd 
Changing password for root
New password: 
Retype password: 

3. 设定开发板的ip地址

ifconfig eth0 192.168.1.101

4. 在开发板上使telnetd在后台运行

telnetd
telnetd -F

5. 在开发板上设置网关及转发规则

 

ip route add 0.0.0.0 dev eth0
ip route add default via 192.168.1.1 dev eth0

 

6. 在电脑的终端上连接开发板

$ telnet 192.168.1.101
Trying 192.168.1.101...
Connected to 192.168.1.101.
Escape character is '^]'.


        Welcome to the LTIB Embedded Linux Environment


Link login: root
Password: 
[root@Link /root]# 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM