简体   繁体   中英

How can i pass authentication while using ssh client at Xcode?

i want to send commands to my raspberry pi via ssh from iPhone app. I am using system function. However i don't know how to pass password authentication.

system("ssh pi@192.168.1.xx");

and after that authentication i want to resume that shell session.

I appreciate all helps. Thank you.

无法将密码作为ssh的参数传递,但是您可以通过设备的安全密钥(搜索关键字:ssh密钥身份验证)配置登录并从iphone使用它,这种方式也更加安全。

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