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.
            Asked
            
        
        
            Active
            
        
            Viewed 5,507 times
        
    1 Answers
2
            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
 
    
    
        Community
        
- 1
- 1
 
    
    
        Ramiz Wachtler
        
- 5,623
- 2
- 28
- 33
- 
                    ah thanks :-) damn why google didnt bring up this lib for me :) – Fabian Boulegue Feb 08 '16 at 07:32
- 
                    @FabianBoulegue You're welcome! Well, since I've never used it with Swift (that's why I came up with this library) it was not that hard to find it. I think NMSSH don't appear in search results if you use SSH and Swift without any further refers to Objective C or NMSSH. ^^ – Ramiz Wachtler Feb 08 '16 at 07:34
- 
                    ok need to look at this later :-) as i m not 100% familiar with using ObjC Frameworks in Swift, the bridging header isnt the problem :)! – Fabian Boulegue Feb 08 '16 at 09:17
- 
                    if you want you could check this once http://stackoverflow.com/questions/35271828/nmssh-does-not-connect-with-swift – Fabian Boulegue Feb 08 '16 at 14:18
