scp command on putty

Discussion in 'iOS Development' started by acca2o, Sep 27, 2009.

  1. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    HI,
    I'm trying to move some files from ipod touch 3.0 and my xp notebook, via wifi and putty.
    I use something like:

    scp c/test.txt root@192.168.1.101:/Applications/test.txt

    where test.txt is a file in my c hd partition on xp and 192.168.1.101 is the ipod ip address


    in the opposite direction:

    scp root@192.168.1.101:/Applications/test.txt c/test.txt


    In both cases the system (witch one? i think the ipod) can't recognise c:/ like a directory
    I tried with c/ C/ C:/
    always the same message

    Can you please help me?

    Thanks
  2. NolesFans

    NolesFans New Member

    Joined:
    Sep 23, 2008
    Messages:
    404
    Likes Received:
    0
    Device:
    iPod touch
    if that is too hard for you, you should uses winscp
  3. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    Thanks, I did it and it's ok, realy easy.
    But is it possible anyway by putty?
    Bye!!!
  4. FxM

    FxM New Member

    Joined:
    Sep 14, 2009
    Messages:
    15
    Likes Received:
    0
    Device:
    iPod touch
    filezila

    You could use FileZilla(sftp) to copy files from your iTouch to pc and
    pc to iTouch. I would think you
    would need an sftp server on the pc to copy from iTouch to PC like you
    want to.
  5. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Your problem is assuming that ssh/scp/whatever understands anything other than a UNIX/LINIX set up. Hint: it doesn't. You will need some kind of bridge.

    So, while the suggestions offered might seem obnoxious in light of what you asked, they really are the best solution for you.
  6. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    Whenever I was doing this ages ago for the iPranks backup project, it used scp just fine. Please keep in mind that UNIX filesystems use / to indicate a subdirectory whereas Windows/DOS-based systems use \ to indicate subdirectories.

    So your syntax would be more like:

    scp root@192.168.1.101:/Applications/test.txt C:\test.txt

    However, you are going bassackwards so why are you trying to grab a file from your own IP as if it were a remote machine? You should do something more along the lines of this:

    scp /Applications/test.txt <ipaddress>C:\test.txt

    Now, in this case, I believe SkylarEC is right... you can't do anything like this from the iPod/UNIX compilation because it won't know how to negotiate with Windows (in layman's terms). Your alternative would be to get the Win32 version and use that first syntax I gave you. Make sense?

Share This Page