Results 1 to 7 of 7

Thread: [SOLVED] Ssh

  1. #1
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Beans
    109
    Distro
    Ubuntu 8.04 Hardy Heron

    [SOLVED] Ssh

    OK, here's the deal:
    I've got a first-gen jailbraked iPod touch running on the latest firmware (2.2).
    I use a P2P app (MewSeek) for my on-the-go music needs (before you get all legal, iTunes music downloads aren't available on my country, this is the only way I can get music downloads). This is very cool except for a tiny detail: the music doesn't sync-back to my computer. I usually use a graphical SFTP client for syncing back stuff on Windows (WinSCP), but I couldn't find a better chance to learn some stuff on terminal.
    I SSHed onto my iPod using this guide and then used a quick tutorial for basic terminal inputs (ya know, moving, copying, deleting, replacing files and stuff...)
    Anyways, this worked amazingly fine for working with files inside my iPod, but I didn't had much luck getting stuff out.
    So I was kinda hoping you guys could help me out here...

    Here's what I achieved: (the files I want to get are in .../Media/Downloads
    Code:
    paco@Paco-Ubuntu:~$ ssh root@192.168.1.102
    root@192.168.1.102's password: 
    Paco-s-touch:~ root# cd /var/mobile/Media/Downloads
    Paco-s-touch:/var/mobile/Media/Downloads root#
    Soo, yep, that's pretty much it: I can move files around on the device, but can't get them out... PLEASE HELP!

    Thanks in advance..
    Last edited by IHATEDLINK; December 2nd, 2008 at 11:14 PM.
    If the above was useful to you please thank me by clicking the star button at the bottom-right of the post.
    Miss iTunes? Check out the iTunes Linux Project!

  2. #2
    Join Date
    Jul 2005
    Location
    Belgium
    Beans
    258
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ssh

    Try something like this from your ubuntu computer:
    Code:
    scp root@192.168.1.102:/path/to/your/file/you/want/to/copy /destination/directory
    Replace the paths with their custom values, You can even copy whole directories using the -r flag. See the scp man page for more details.

  3. #3
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Beans
    109
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ssh

    Code:
    paco@Paco-Ubuntu:~$ scp root@192.168.102: /var/mobile/Media/Downloads copy -r /home/paco
    ssh: connect to host 192.168.102 port 22: Connection timed out
    cp: cannot stat `/var/mobile/Media/Downloads': No such file or directory
    cp: cannot stat `copy': No such file or directory
    cp: missing destination file operand after `/home/paco'
    :S, It seems weird to, I mean, I usually have to enter a password for accesing the device...
    Oh, and is "copy" a normal command? I was told to use "cp" instead.
    Last edited by IHATEDLINK; December 2nd, 2008 at 11:15 PM.
    If the above was useful to you please thank me by clicking the star button at the bottom-right of the post.
    Miss iTunes? Check out the iTunes Linux Project!

  4. #4
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ssh

    scp -r root@192.168.1.102:/var/mobile/Media/Downloads /home/paco

    scp is secure cp which uses the ssh (secure shell) protocol to "cp" files between different computers.
    Last edited by ilrudie; December 3rd, 2008 at 03:01 PM.
    GNU/Linux>Windows

  5. #5
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Beans
    109
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ssh

    Quote Originally Posted by ilrudie View Post
    scp -r root@192.168.1.102:/var/mobile/Media/Downloads /home/paco

    scp is secure cp which uses the ssh (secure shell) protocol to "cp" files between different computers.
    It worked great! thanks A LOT!!
    If the above was useful to you please thank me by clicking the star button at the bottom-right of the post.
    Miss iTunes? Check out the iTunes Linux Project!

  6. #6
    deadowl is offline Gee! These Aren't Roasted!
    Join Date
    Jan 2007
    Beans
    128

    Re: Ssh

    You can also run the command sftp root@192.168.1.102
    I would, however, recommend sftp paco@192.168.1.102

    Sftp allows you to browse both folder trees and gives you the ability to move files between devices.

    Do it with a GUI:
    Go to the places menu
    Click "Connect to Server..."
    Select SSH fom Service type
    Input 192.168.1.102 to the server field

  7. #7
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Beans
    109
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ssh

    Quote Originally Posted by deadowl View Post
    You can also run the command sftp root@192.168.1.102
    I would, however, recommend sftp paco@192.168.1.102

    Sftp allows you to browse both folder trees and gives you the ability to move files between devices.

    Do it with a GUI:
    Go to the places menu
    Click "Connect to Server..."
    Select SSH fom Service type
    Input 192.168.1.102 to the server field
    Thanks A LOT men... I forgot how everything was actually built-in on the OS... Anyways I wanna learn more terminal stuff so you'll see me again asking for stuff...
    If the above was useful to you please thank me by clicking the star button at the bottom-right of the post.
    Miss iTunes? Check out the iTunes Linux Project!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •