1. create ssh key
public@openBox ~ $ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/public/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/public/.ssh/id_rsa.
Your public key has been saved in /home/public/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:
2. create directory on iphone
mkdir /private/var/root/.ssh
3. put key on iphone
sftp root@iphoneip
Connecting to 10.10.10.13…
root@10.10.10.13’s password:
sftp> put .ssh/id_rsa.pub .ssh/
.ssh/id_rsa.pub 100% 394 0.4KB/s 00:00
sftp> exit
4. add authorized keys and change priviliges
ssh root@iphoneip
root@10.10.10.13’s password:
Last login: Mon Apr 21 20:59:04 2008 from 10.10.10.10
cd .ssh
cat id_rsa.pub >> authorized_keys
chmod 755 /var/root
chmod 700 /var/root/.ssh
chmod 644 /var/root/.ssh/authorized_keys
5.
edit with: nano /etc/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
6. restart iphone or sshd
finish …
optional.
for amarok coverart and libgpod use:
- connect with usb
- mount with sshfs
cd /media/iphone/iPod_Control/Device/
sudo lsusb -v -d 05ac: | grep iSerial | awk ‘{print $3}’ | cut -b1-16 | xargs printf “FirewireGuid: 0x%sn” > SysInfo