[telnet]连接被拒绝??无法连接手机

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
7lemon
帖子: 62
注册时间: 2007-07-13 22:07
联系:

[telnet]连接被拒绝??无法连接手机

#1

帖子 7lemon » 2007-07-16 20:26

root@lemon-desktop:~# ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900
root@lemon-desktop:~# telnet 192.168.1.2
Trying 192.168.1.2...
telnet: Unable to connect to remote host: Connection refused
root@lemon-desktop:~#

telnet是装好的了,telnetd也装了,就是无法连接手机,这是为什么?搞不懂
头像
nobrain
帖子: 808
注册时间: 2005-08-25 13:58
来自: ustc
联系:

#2

帖子 nobrain » 2007-07-16 20:27

try

代码: 全选

sudo telnet 192.168.1.2 
爱喝真猪奶茶的夜鸣猪
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

#3

帖子 xhy » 2007-07-16 20:32

添加一条到手机的路由
目前负债150多万
sducxh
帖子: 4
注册时间: 2007-07-16 13:26

#4

帖子 sducxh » 2007-07-16 21:09

同问...我的手机是 MOTO E2 在Telnet模式下 怎么与电脑(ubuntu下)连接
头像
wsk170
帖子: 123
注册时间: 2006-10-14 11:34

#5

帖子 wsk170 » 2007-07-17 12:45

把手机的连接 设置成 USBNET 模式
sudo ifconfig usb0 192.168.1.1
telnet 192.168.1.2
应该就可以了(我的E2这样就可以了)
头像
7lemon
帖子: 62
注册时间: 2007-07-13 22:07
联系:

#6

帖子 7lemon » 2007-07-17 16:57

还是拒绝~~
june_21
帖子: 1
注册时间: 2007-07-19 20:44

#7

帖子 june_21 » 2007-07-19 20:48

在确认驱动安装好的情况下 就是插上后可以显示 motorola usb link的情况下

开始,运行,输入services.msc,找到DHCP Client服务,将其设置为自动,并选择启用

就可以了 一般适用用重装系统的情况
头像
7lemon
帖子: 62
注册时间: 2007-07-13 22:07
联系:

#8

帖子 7lemon » 2007-07-20 17:08

楼上的大哥~ 有没有搞错?你那是Windows
头像
xiehuoli
帖子: 5941
注册时间: 2006-06-10 8:43
来自: 中国 CS

#9

帖子 xiehuoli » 2007-07-20 17:50

估计他晕了
哈哈
年轻没有失败! ! ! ! ! !
噢!有怪兽,有怪兽!
307WRC
帖子: 480
注册时间: 2006-12-13 22:50

#10

帖子 307WRC » 2007-07-20 18:29

晕,汗一下7楼的强人。
头像
7lemon
帖子: 62
注册时间: 2007-07-13 22:07
联系:

#11

帖子 7lemon » 2007-07-21 19:41

插上手机,但是在终端里telnet的时候,系统找的不是手机的地址,却是互联网上的地址。怎么让系统找手机的地址呀?
手机地址是192.168.16.1 telnet应该找的地址是192.168.16.2
头像
7lemon
帖子: 62
注册时间: 2007-07-13 22:07
联系:

#12

帖子 7lemon » 2007-07-28 12:18

上面同问的解决没?我的问题解决了

手机不给自动分配地址,要手动操作。

电脑上先输入
sudo ifconfig 192.168.16.1

下载个手机终端装上

进入终端输入
ifconfig usbl0 192.168.16.2(注意:usb后面是“字母l”和“数字0”)

然后电脑上执行
telnet 192.168.16.2

如下:
lemon@lemon-desktop:~$ telnet 192.168.16.2
Trying 192.168.16.2...
Connected to 192.168.16.2.
Escape character is '^]'.

MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x

SUMATRA login: root

root:~# ls
autorun.txt download_modules ezx_aplog.cfg sysDatabase
download etc_files lucon.ttf
root:~#
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#13

帖子 skyx » 2007-07-28 12:30

sudo ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900
Password:
sky@thinkpad:~$ telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.

MontaVista Linux Consumer Electronics Edition 3.0
Linux/armv5tel 2.4.20_mvlcee30-mainstone


(none) login: root
Linux 192.168.1.11 2.4.20_mvlcee30-mainstone #7 Fri Feb 13 15:39:51 CST 2004 armv5tel unknown

MontaVista Linux Consumer Electronics Edition 3.0

No directory /root!
Logging in with home = "/".
#
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#14

帖子 skyx » 2007-07-28 12:39

可能要加sudo

代码: 全选

sudo ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900 
no security measure is worth anything if an attacker has physical access to the machine
harry1985
帖子: 19
注册时间: 2006-11-03 10:36

#15

帖子 harry1985 » 2007-11-05 20:43

请教楼上的,在7.10下这段代码还有效吗?我用这段代码的时候总是报错
harry@RX-78:~$ sudo ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900
SIOCSIFADDR: No such device
usb0: 获取接口标志时出错: No such device
SIOCSIFNETMASK: No such device
SIOCSIFMTU: No such device
回复