Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

raziiq

macrumors member
Original poster
Aug 26, 2008
82
0
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??
 
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
 
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.
 
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.
 
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??
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.