How to use usbmuxd and ssh to copy file?

We know that we can use these commends to copy file with the SSH.
~scp /path/to/localFile user@iOSIP:/path/to/remoteFile
~scp user@iOSIP:/path/to/remoteFile /path/to/localFile
But how can I copy file when I connect iPhone using usbmuxd?
Thanks in advance.

1 个赞

just use the same command,but the @iOSIP in this situation is localhost or 127.0.0.1

1 个赞

Thank you very much. It’s work!

1 个赞

第三个号来了,在再次被封之前,我就说一下,书我买的正版,问题是我思考后不懂上来问的,提问的语言有规定么?用英语提问就是装老外?我一不骂人,二不灌水,真心诚意来社区里学习,提个问题被封一次也是醉了。号您就继续封好了,一个问题一个号,您看着IP来,好了,继续学习去

1 个赞

by using the usbmuxd, I had used the USB ssh successfully,I tapped the command ‘scp - r root@localhost:filePath MacPath’,it noticed that ‘ssh: connect to host localhost port 22: Connection refused’. how to solve it , brother?

give parameter -P port to scp
e.g.

scp -r -P 2222 "root@localhost:/private/var/mobile/Documents/Dumped" ~/z
1 个赞

much thanks .