吹友吧-智能社区

 找回密码
 加入我们

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
森乐Senwater-专业净水专家,整机美国原装壁挂式新风,洁净健康帮手有消毒功能的原装空气净化器(FDA认证技术)
查看: 1842|回复: 7

[软件及汉化] 为什么不用 FileZilla 连接 Pre?

[复制链接]
发表于 2011-2-28 18:27 | 显示全部楼层 |阅读模式
http://forums.precentral.net/pal ... sing-filezilla.html
% m# j9 z; @, q9 g
2 L& ?( e, q) N, G& W' J* b这个不仅比[ZT]ROM定制_深度定制版webos2.1.0中的那个安全(安全隐患不言而喻),而且也更加方便,putty 也可以很方便地连接。  @, x0 V6 f" k0 t5 g
$ R& N- J9 v( c7 f2 f6 |2 T
Whew—after two days of forum diving and experimentation, I finally got FTP up and running over SSH. I'd like to share the wealth: all the steps you need, in one place, to gain FTP access to your Pre over Wi-Fi—no more swapping out USB cables!
. g3 A6 V9 O. o' {+ C8 G9 w7 v8 c& n0 P, G9 K7 f  p3 M1 \( S
This can be done in just 5 steps, which I'll detail below:
: U) R# r6 w& ^9 L: k- uinstall Preware/ \' A# a! K" X9 ^- d- H* Y
use Preware to install SFTP and Terminal
; n7 Y) q9 P) C* N3 o: ?! m: m2 uuse Terminal to generate keys for OpenSSH. e: z: \* B6 k, x
transfer SSH keys to desktop via USB8 i- h8 I9 t4 b1 f2 C
configure FileZilla on desktop and connect
0 Z+ N. s" G7 |: [1. install Preware3 l, P0 {+ B& Z) }! [" q
Since this has been well documented and you've probably done this much by now, I'm going to cheat and refer you to these excellent install guides:
( ~' x# g( O) r7 Fuse Device Info and the Updates utility to make sure webOS is current (1.4.1.1 as of this writing). ?- F5 m9 w* U) c4 i
load webOS Quick install to enable homebrew apps) x# ]" w  n& u# X
use webOS Quick Install to load PreWare1 m# [1 Q" x8 ~# u: i+ O
(for both guides, the Setup section is all you need)
  u7 {' s" W/ h$ ]2. use Preware to install SFTP and Terminal
# e9 `% y% j7 x8 i! I7 G; L4 C9 YWith Preware on your system, you can manage most of your system tweaking right on the Pre with this single marvelous utility. Open up Preware to the main screen. It may take a minute or two to check for updates and index available packages.
8 w: X# j2 J4 q/ P$ x. a2 a2 zAt the main screen, type FTP and hit ↵. Select OpenSSH SFTP Server from the list and install it. You may be prompted to install other dependent services and to restart when the install is complete, do so in both cases.5 a7 p3 }4 X( C8 t: h! Z% |' q7 Y
Back at the main Preware screen, type TERMINAL and hit ↵. Select Terminal from the list and install it. You'll be prompted to install the Terminal Service Plugin and restart; again, do so.. m$ o* R$ T8 O; K
3. use Terminal to generate keys for OpenSSH# Y. ]( |0 m2 c1 Q8 J& e2 G8 W
Terminal gives you direct command-line access to to your Pre, which is amazing, but don't have too much fun with it—when they say it's not very stable, they're not kidding. For our purposes here it should work fine. I pulled the following command sequence from the helpful Application: OpenSSH wiki. (Really, everything you need is right there, but the trick is knowing which to apply and the necessary prerequisites.) So, to generate your SSH keys, start the Terminal application and enter the following commands:  ^" f4 x3 s% [) e; s3 g7 O. W
cd /
# a; P- ~. ]9 s( Z. @& }* h( x$ j/opt/bin/ssh-keygen& U: P& @7 p! Y6 G' a) D- I1 J
Press ↵ to accept the default filename. When prompted, press ↵ twice for a blank password. Then enter the final commands to transfer your keys to usable locations:( T7 p, t3 g3 |9 F3 z% U' s! ~' H
mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys
) X  z# m5 J% Vcp /home/root/.ssh/id_rsa /media/internal/id_rsa1 I7 l: V+ m0 O0 ~5 |0 f  p* }
You're done with Terminal and can close it.* M- a. E+ q  E' J9 J- f" m; V

% \$ {8 ~* c( N' U4. transfer SSH keys to desktop via USB( \/ V, x9 b4 i' q4 `9 K
Connect the Pre to your computer via USB and put it in Drive mode (possibly for the last time!) Copy the id_rsa file from the Pre to your computer's hard drive and remember where you saved it. That's it! You can "safely disconnect" or "eject" the Pre's drive and unplug the USB cable.- p3 P0 i/ b9 n2 D9 c8 W
6 v% V; K. e2 p0 i; v( l* U5 c, u( a
5. configure FileZilla on desktop and connect
- [0 r" p0 m5 K( [; uIf you don't already have it, download and install the FileZilla client on your computer. This is a great general-purpose FTP client, but it's particularly suited to our purposes because of its native ability to handle the OpenSSH private key and convert it into a format it can use without any additional software.
6 b2 w/ G# m# |4 e% t
5 k$ E% L$ K: K7 V7 xTo add your SSH private key (again, per the Application: OpenSSH wiki):! A1 ?: I. t6 y5 F9 c  M
start FileZilla  I4 o/ ?& V- m2 L8 s5 N- S
under Edit > Settings > SFTP, click "Add keyfile..." and locate the id_rsa file you saved earlier5 V0 B( b9 H( k* {  G+ f
click "Yes" to convert it to a .ppk file FileZilla can use! X3 x8 Q  [) v
give it any name you like and save it to a permanent location where it will be available whenever you need to connect
( e( I% b3 c( B( J/ }$ nNow you just need to connect! Go to File > Site Manager and create a new site with the following settings:, n" G( x! j+ ^
Host: your Pre's local IP address over Wi-Fi
' @  Y' l7 j% O: b, a$ v(tap the name of your Wi-Fi connection for its current IP)! `6 F8 y: F2 _# x2 B% e
Servertype: SFTP - SSH File Transfer Protocol/ D1 m: }& G5 P$ n4 ^
Logontype: Normal
7 P& E' G5 B! \; `$ @1 c/ mUser: root
4 G: \2 q) b4 Z) e3 ]+ Qbe sure to leave the password blank
# L7 z+ }0 K: o+ `- c( D% hoptionally, on the Advanced tab: set your preferred local directory, and set the default remote directory to/media/internal
) ^! T" u5 u. `9 NClick Connect and hold your breath for a couple of seconds while you see if your hard work has paid off... if one of us didn't screw up, you should now have full wireless access to your Pre!$ W- ^0 o* R2 g+ S

9 Q1 }3 R. ]. O8 S& r) mBy the way, the FileZilla application folder is easily portable on a USB drive if you wish to access the Pre from other machines.
回复

使用道具 举报

发表于 2011-2-28 21:25 | 显示全部楼层

filezilla是个好东西

居然没人顶
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-28 21:38 | 显示全部楼层
原帖由 挣扎行走 于 2011-2-28 21:25 发表
+ t* n' q# l. t. _居然没人顶

3 |2 E0 W1 w- H$ [  V
( S; O- [  r, Y! @# L目前为止这个方法是最方便的。
回复 支持 反对

使用道具 举报

发表于 2011-2-28 23:04 | 显示全部楼层
因为不会。。。。这几天正在搞着呢。。。
回复 支持 反对

使用道具 举报

发表于 2011-2-28 23:49 | 显示全部楼层
试了下,没成功,期待详细教程!winscp速度太慢了!
回复 支持 反对

使用道具 举报

发表于 2011-2-28 23:54 | 显示全部楼层
很详细的步骤。学习了
回复 支持 反对

使用道具 举报

发表于 2011-3-1 08:59 | 显示全部楼层
不懂,飘过
回复 支持 反对

使用道具 举报

发表于 2011-3-2 23:46 | 显示全部楼层
连不上,不知道为什么
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

森乐Senwater-净水专家,整机美国原装
全屋净水方案技术平台: 提供全套民用净水方案咨询

QQ|小黑屋|手机版|Archiver|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2021-9-18 07:32 , Processed in 0.142006 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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