SSH Connect to Mac with iPhone SDK for Remote Logon

I wonder if anyone was able to connect to the Mac using their iOS device via SSH (Remote Login) to access the terminals and execute commands. I know that this is definitely possible, as the Mobile Terminal application does it perfectly. I am trying to implement this connection in an iOS4 application. Does anyone know the code for this?

+3
source share
2 answers

MobileTerminal.app is a terminal emulator that simply calls OpenBSD OpenSSH. Unfortunately, you cannot do this, because it is required for this fork(), and one of the things that the sandbox prohibits is fork(). The easiest way to do this is simply to take the OpenSSH source and apply the CocoaTouch GUI to it.

+1
source

iPhone-, SSH libssh2. , , privateKey, . Amazon EC2, .

, , ? , - , .   AWS MAC, .

ssh -i (keyFilePath) @( IP)

, , Xcode.

+1

Source: https://habr.com/ru/post/1765472/


All Articles