[SOLVED] SSHing into an iPod, how do I display/open files and how do I move them to filesystem
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Anyway, another thing, if you could be so kind, this is optional, could you tell me more about how SSH works? You don't need to though, I only need an answer for SSH commands.
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.
Actually, you can install an OpenSSH server on an iPhone/iPod Touch, but it involves "jailbreaking" the device (i.e. allowing installation of apps outside Apple's App Store).
Actually, you can install an OpenSSH server on an iPhone/iPod Touch, but it involves "jailbreaking" the device (i.e. allowing installation of apps outside Apple's App Store).
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.
Code:
theif519@theif519-Inspiron-580s:~$ sudo -i
[sudo] password for theif519:
root@theif519-Inspiron-580s:~# ssh 192.168.1.2
root@192.168.1.2's password:
theif519s-iPod:~ root# ls
Documents/ Library/ Media/ NinjaGa.nes Ninja_Gaiden_1.zip
theif519s-iPod:~ root# cd /
theif519s-iPod:/ root# ls
Applications@ Library/ Thumbs.db bin/ cores/ etc@ mnt/ sbin/ usr/
Developer/ System/ User@ boot/ dev/ lib/ private/ tmp@ var@
theif519s-iPod:/ root# cd var
theif519s-iPod:/var root# ls
Keychains/ cache/ include/ log/ root/ vm/
Managed\ Preferences/ db/ keybags/ logs/ run/ wireless/
MobileDevice/ ea/ lib/ mobile/ spool/
audit/ empty/ local/ msgs/ stash/
backups/ folders/ lock/ preferences/ tmp/
theif519s-iPod:/var root# cd ..
theif519s-iPod:/ root# ls
Applications@ Library/ Thumbs.db bin/ cores/ etc@ mnt/ sbin/ usr/
Developer/ System/ User@ boot/ dev/ lib/ private/ tmp@ var@
theif519s-iPod:/ root# cd User
theif519s-iPod:/User root# ls
Applications/ Documents/ Library/ Media/ loader_package.tar
theif519s-iPod:/User root# cd Documents
theif519s-iPod:/User/Documents root# cd
theif519s-iPod:~ root# ls
Documents/ Library/ Media/ NinjaGa.nes Ninja_Gaiden_1.zip
theif519s-iPod:~ root# cd Documents
theif519s-iPod:~/Documents root# ls
admob/
theif519s-iPod:~/Documents root# cd ..
theif519s-iPod:~ root# cd ..
theif519s-iPod:/var root# cd /
theif519s-iPod:/ root# ls
Applications@ Library/ Thumbs.db bin/ cores/ etc@ mnt/ sbin/ usr/
Developer/ System/ User@ boot/ dev/ lib/ private/ tmp@ var@
theif519s-iPod:/ root# cd User
theif519s-iPod:/User root# ls
Applications/ Documents/ Library/ Media/ loader_package.tar
theif519s-iPod:/User root# cd Documents
theif519s-iPod:/User/Documents root# ls
Intro_To_Linux.pdf Linux_Command-Line.pdf Rute_Users_Guide.pdf admob/
KLPhotoMosaic/ Linux_Shell.pdf Slackware_Guide.pdf mobclix.db
theif519s-iPod:/User/Documents root# rsync -e ssh
-sh: rsync: command not found
theif519s-iPod:/User/Documents root#
rsync wasn't recognized... do I have to do it in my own terminal or in the SSH'd iPod Terminal? Is there a front-end for SSHing that's on Linux?
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:
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
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.