SSHing into an iPod, how do I display/open files and how do I move them to filesystem
Well, figuring out that just plugging in my iPod in Ubuntu only shows certain files, music, and images, the other important and "Juicy" stuff that I've saved on iFile is there, like PDFs and documents and whatnot. Should I just take the easy way out and move everything from my iPod to a file that can be easily read *Yet hard to locate on my iPod* so I can just transfer it from there, or should I do it the hard way and try to find out how? Well, I've always wanted to learn how to move files over a Secure Shell, so I guess now would be the best time to learn. What commands do I have to use to move files from one machine/device to another? Should I copy the files first before attempting to move them? Are there any switching accompanying the commands and can you explain what they do so I know what and why I'll be using them so I can consider them in future use. Also, in order to SSH into it, I had to do it as root
Code:
sudo -i |
To ssh to a device, that device needs to be running and ssh server/daemon. I've never used and ipod, but I would be amazed if they run an ssh daemon: have you read/heard something that indicates that they do?
Anyway, you can't really "move" files, but you can "copy" them (but I guess by deleting the local file after copying it you have effectively moved it). scp is the classic command for copying files over ssh, but you can also use things like rsync: eg "rsync -e ssh". Other fun things you can do include mounting a remote file system with fuse/sshfs. Evo2. |
Quote:
|
Quote:
|
Quote:
Code:
theif519@theif519-Inspiron-580s:~$ sudo -i |
There are many ssh client front ends. I personally prefer just using ssh from the command line. However as I understand it many file managers have ssh built in so you can "drag-n-drop" files in the same way you would normally use a file manager.
One thing I thought I should mention is that you should not need to be root on you pc to ssh to your ipod, you just need to specify that the user on the ipod is root: Eg Code:
theif519@theif519-Inspiron-580s:~$ ssh root@192.168.1.2 Code:
theif519@theif519-Inspiron-580s:~$ rsync -e ssh /home/theif519/Music root@192.168.1.2:/User/Media |
Ok, just realized that what you want to do is copy files from your ipod onto your computer. If for example you wanted to copy all the files in /User/Documents you could do the following
Code:
theif519@theif519-Inspiron-580s:~$ scp -r root@192.1681.2.:/User/Documents . |
Quote:
Code:
theif519@theif519-Inspiron-580s:~$ ssh root@192.168.1.2 |
You are running the command from the wrong machine.
Evo2. |
Quote:
Code:
theif519@theif519-Inspiron-580s:~$ theif519@theif519-Inspiron-580s:~$ ssh root@192.168.1.2 |
You are still trying to run the scp on the ipod. Look at what the prompt is in the command that I posted.
Evo2. |
Quote:
|
Nevermind, found it in my documents section, but how did it know to send it? My present direction was /home/theif519 not /home/theif519/Documents does it automatically allocate it to a certain directory that it thinks it's supposed to go to? Also, what does the "." mean at the end of the command?
|
The "." at the end is the destination for the files. So, they should have ended up in the directory you were in when you ran the command. Please try it again to confirm this.
Evo2. |
OH! I see what it did, it must have detected a file with the same name and instead of overwriting it, copied the subdirectories into it! Awesome! Also, I want to know how I do it the other way around? Do I do it from inside the iPod's side of the SSH Terminal or from my own?
|
All times are GMT -5. The time now is 06:20 PM. |