-^ Copy a local file to iOS:
scp /path/to/localFile user@iOSIP:/path/to/remoteFile
For instance:
snakeninnysiMac:~ snakeninny$ scp ~/1.png [email protected]:/var/tmp/
-^ Copy a file from iOS to the local system:
scp user@iOSIP:/path/to/remoteFile /path/to/localFile
For instance:
snakeninnysiMac:~ snakeninny$ scp [email protected]:/var/log/syslog ~/iOSlog
These two commands are relatively simple and intuitive. After installing OpenSSH, make
sure to change the default login password “alpine”. There’re 2 users on iOS, i.e. root and
mobile, we need to change both passwords like this:
FunMaker-5:~ root# passwd root
Changing password for root.
New password:
Retype new password:
FunMaker-5:~ root# passwd mobile
Changing password for mobile.
New password:
Retype new password:
If we forget to change the default password, there’re chances that viruses like Ikee login as
root via ssh. This leads to very serious security disasters: all data on iOS including SMS, contacts,
AppleID passwords and so on is at the risk of leaking, the intruder can take control over your
device and do whatever he wants. Therefore, promise me you’ll change the default password
after installing OpenSSH, OK?
4.6 usbmuxd
Most of you ssh into iOS via WiFi, which leads to slow responses in remote debugging or
file copying. This is because of the instability of wireless network and the limitation of
transmission speed. The well-known hacker, Nikias Bassen (@pimskeks) has written a tool
named usbmuxd to forward local OSX/Windows port to remote iOS port. With this tool, we
can ssh into iOS via USB, greatly increasing the speed of SSH connection. usbmuxd is easy to
use:
- Download and configure usbmuxd
Download usbmuxd from http://cgit.sukimashita.com/usbmuxd.git/snapshot/usbmuxd-