简体   繁体   中英

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 pi@192.XXX.X.XX 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 pi@192.XXX.X.XX"); 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM