idoodler
idoodler

Reputation: 3545

how to SSH into Raspberry pi with iPhone?

I like to make an app to control my Raspberry Pi. I have to SSH to my Pi, I am using ssh [email protected] to SSH to my Pi via my Mac, after this I have to type in the password of my Pi. I like to creat this for my iPhone, I am using system("ssh [email protected]"); to SSH into my Pi, but I obviously have to type in the password, but I dont know how. Does someone know how to incloude the password int the system command?

Upvotes: 0

Views: 1944

Answers (1)

tilo
tilo

Reputation: 14169

You could use a SSH Wrapper library for this, e.g. libssh2-for-iOS. It will enable you to use connectToHost:port:user:password:error: `

Upvotes: 1

Related Questions