Fabian Boulegue
Fabian Boulegue

Reputation: 6608

Execute SSH via Swift on iOS

I m looking for a way to run ssh commands from iOS is there a simple and basic way? As NSTask() is not available on iOS, its just for a need to send a 2 lines of ssh to a RaspberryPi.

Upvotes: 1

Views: 5682

Answers (1)

Ramiz Wachtler
Ramiz Wachtler

Reputation: 5683

A possible workaround could be using the Objective C NMSSH library by following the guide in this StackOverflow answer . Further, maybe you should also take a look at "Adding Swift bridging header" (if using NMSSH is an option) as referenced in following issue

Upvotes: 2

Related Questions