ssh without prompting for password??

Discussion in 'iPhone' started by raziiq, Jul 23, 2009.

  1. raziiq macrumors member

    Joined:
    Aug 26, 2008
    #1
    is there any way i can ssh into my iPhone without been prompted for password. Is this command valid?


    Code:
    ssh root-alpine@<ip address>
    where ip address is the actual ip address something like 192.168.1.1??
     
  2. RandomKamikaze macrumors 6502a

    RandomKamikaze

    Joined:
    Jan 8, 2009
    Location:
    UK
    #2
    The command would be ssh root@<ip> where <ip> is the IP address of your iPhone.

    As not prompting for password, you can either see if you can remove it or type it in as part of the login. I don't know if either are possible and suggest you just live with it
     
  3. jc1350 macrumors 6502a

    Joined:
    Feb 4, 2008
    #3
    do a google search for 'passwordless ssh' or 'ssh keygen.'

    there are a hundred tutorials on how to create an ssh key-pair that you can use instead of passwords.

    Most tell you to set a password for the key pair. That may defeat your purpose, but it's to prevent someone from using your key pair if they can get the 2 files. If you don't set a password for the keypair, anyone who can get them will be able to log in to those particular systems as you. You have to weigh the pros and cons of not setting a password for your keypair.
     
  4. eliteneo macrumors member

    Joined:
    Oct 31, 2008
  5. mappyman macrumors regular

    Joined:
    Jul 26, 2008
    Location:
    UK
    #5
    I had mine setup pre 3.0 password less. Once you have created a key pair create the file "authorized_keys" and make sure its chmod 600. Look for tutorials on google.
     
  6. raziiq thread starter macrumors member

    Joined:
    Aug 26, 2008
    #6
    It means that i have to create a keychain for my iPhone 3g, iPhone 2g and iPod Touch separately right?

    Isnt there any command like i specified above that just do the trick in a single line without doing all this keychain n login stuff.

    Code:
    ssh root-alpine@<ip address>
    Infact i m trying to develop an app for iPhone in which i want to SSH into iPhone and then copy some folders to/from iPhone. So i need to pass a command from with my iPhone app.

    Any suggestions??
     

Share This Page