diff options
Diffstat (limited to 'stuff')
-rw-r--r-- | stuff/README | 25 | ||||
-rw-r--r-- | stuff/com.openssh.sftp.plist | 41 |
2 files changed, 0 insertions, 66 deletions
diff --git a/stuff/README b/stuff/README deleted file mode 100644 index 290285d..0000000 --- a/stuff/README +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | *** NOTE: | ||
2 | *** Doing this is mostly obsolete. The preferred method to sync music to an | ||
3 | *** iPhone now is to use ifuse or some other afc-based client, which does not | ||
4 | *** require jailbreaking or adding this service. Please take a look at the | ||
5 | *** libiphone, ifuse, and libgpod projects. | ||
6 | |||
7 | com.openssh.sft.plist is a launchd configuration to set up a bare SFTP server | ||
8 | on TCP port 2299 localhost-only for USB use. It's nice for relatively fast music | ||
9 | syncing and file transfer under Linux (and it avoids encryption). Con: it gives | ||
10 | anyone with usb access root FS access on the phone, as well as anything running | ||
11 | on the phone itself. | ||
12 | |||
13 | Use it with a command like this: | ||
14 | |||
15 | IPATH=/var/mobile/Media | ||
16 | MOUNTPOINT=$HOME/media/iphone | ||
17 | $ sshfs localhost:$IPATH $MOUNTPOINT -o workaround=rename -o directport=2299 \ | ||
18 | -o kernel_cache -o entry_timeout=30 -o attr_timeout=30 | ||
19 | |||
20 | Make sure you run tcprelay.py: | ||
21 | $ python tcprelay.py -t 2299 | ||
22 | |||
23 | Remember that to bypass the stupid new iTunesDB hash you need to edit | ||
24 | /System/Library/Lockdown/Checkpoint.xml and change DBVersion to 2. | ||
25 | |||
diff --git a/stuff/com.openssh.sftp.plist b/stuff/com.openssh.sftp.plist deleted file mode 100644 index 569fabc..0000000 --- a/stuff/com.openssh.sftp.plist +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
3 | <plist version="1.0"> | ||
4 | |||
5 | <dict> | ||
6 | <key>Label</key> | ||
7 | <string>com.openssh.sftpd</string> | ||
8 | |||
9 | <key>Program</key> | ||
10 | <string>/usr/libexec/sftp-server</string> | ||
11 | |||
12 | <key>ProgramArguments</key> | ||
13 | <array> | ||
14 | <string>/usr/libexec/sftp-server</string> | ||
15 | </array> | ||
16 | |||
17 | <key>SessionCreate</key> | ||
18 | <true/> | ||
19 | |||
20 | <key>Sockets</key> | ||
21 | <dict> | ||
22 | <key>Listeners</key> | ||
23 | <dict> | ||
24 | <key>SockServiceName</key> | ||
25 | <string>2299</string> | ||
26 | <key>SockNodeName</key> | ||
27 | <string>127.0.0.1</string> | ||
28 | </dict> | ||
29 | </dict> | ||
30 | |||
31 | <key>StandardErrorPath</key> | ||
32 | <string>/dev/null</string> | ||
33 | |||
34 | <key>inetdCompatibility</key> | ||
35 | <dict> | ||
36 | <key>Wait</key> | ||
37 | <false/> | ||
38 | </dict> | ||
39 | </dict> | ||
40 | |||
41 | </plist> | ||