summaryrefslogtreecommitdiffstats
path: root/stuff
diff options
context:
space:
mode:
Diffstat (limited to 'stuff')
-rw-r--r--stuff/README19
-rw-r--r--stuff/com.openssh.sftp.plist41
2 files changed, 60 insertions, 0 deletions
diff --git a/stuff/README b/stuff/README
new file mode 100644
index 0000000..8c5c423
--- /dev/null
+++ b/stuff/README
@@ -0,0 +1,19 @@
1com.openssh.sft.plist is a launchd configuration to set up a bare SFTP server
2on TCP port 2299 localhost-only for USB use. It's nice for relatively fast music
3syncing and file transfer under Linux (and it avoids encryption). Con: it gives
4anyone with usb access root FS access on the phone, as well as anything running
5on the phone itself.
6
7Use it with a command like this:
8
9IPATH=/var/mobile/Media
10MOUNTPOINT=$HOME/media/iphone
11$ sshfs localhost:$IPATH $MOUNTPOINT -o workaround=rename -o directport=2299 \
12 -o kernel_cache -o entry_timeout=30 -o attr_timeout=30
13
14Make sure you run tcprelay.py:
15$ python tcprelay.py -t 2299
16
17Remember that to bypass the stupid new iTunesDB hash you need to edit
18/System/Library/Lockdown/Checkpoint.xml and change DBVersion to 2.
19
diff --git a/stuff/com.openssh.sftp.plist b/stuff/com.openssh.sftp.plist
new file mode 100644
index 0000000..569fabc
--- /dev/null
+++ b/stuff/com.openssh.sftp.plist
@@ -0,0 +1,41 @@
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>