sshpass to login to iphone -- won't accept directory specification

Discussion in 'iPhone' started by lawlist, Jun 29, 2014.

  1. lawlist macrumors member

    Joined:
    May 19, 2010
    #1
    I'm able to login to the iphone with sshpass from the terminal, but not into a specific directory while logging in. Any help on the proper method to select a directory while logging in would be greatly appreciated.

    Works: sshpass -p 'alpine' ssh -p '2222' root@localhost

    Doesn't Work: sshpass -p 'alpine' ssh -p '2222' root@localhost:/var

    When it doesn't work, there is no error message, it just appears to do nothing and I am not returned to a command prompt.
     
  2. lawlist thread starter macrumors member

    Joined:
    May 19, 2010
    #2
    Here is a working method, however, I have another problem now because a semicolon cannot be used in `elisp` since it is a comment delimiter. I'm trying to write an `elisp` function that will synchronize with the iphone using rsync.

    /Users/HOME/.0.data/.0.emacs/elpa/bin/sshpass -p 'alpine' ssh -p '2222' -l root localhost -t "cd /var/mobile/Applications/F30B1574-5979-4764-8742-7F9DB2863094/Documents/.0.data; bash --login"
     
  3. lawlist thread starter macrumors member

    Joined:
    May 19, 2010
    #3
    Issue resolved -- here is another way to write it without using a semicolon

    /Users/HOME/.0.data/.0.emacs/elpa/bin/sshpass -p 'alpine' ssh -p '2222' -l root localhost -t "cd /var/mobile/Applications/F30B1574-5979-4764-8742-7F9DB2863094/Documents/.0.data && bash --login"
     
  4. VersaceX macrumors newbie

    Joined:
    Jun 24, 2014
    #4
    Ever get that feeling that your talking only to yourself?
     

Share This Page