{"id":7625,"date":"2015-09-23T04:59:01","date_gmt":"2015-09-23T04:59:01","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/09\/23\/lejdborg-nmssh\/"},"modified":"2015-09-23T04:59:01","modified_gmt":"2015-09-23T04:59:01","slug":"lejdborg-nmssh","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/09\/23\/lejdborg-nmssh\/","title":{"rendered":"Lejdborg\/NMSSH"},"content":{"rendered":"<p>NMSSH is a clean, easy-to-use, unit tested framework for iOS and OSX that wraps libssh2.<\/p>\n<p>Are you using NMSSH for something cool? Let me know.<\/p>\n<h2>Questions &amp; Issues<\/h2>\n<p>If you encounter an issue or have any questions about implementing NMSSH, please post them in the issue tracker \u2013 I do not offer free support via email.<\/p>\n<h2>Installation<\/h2>\n<h3>Cocoapods<\/h3>\n<pre><code>pod 'NMSSH'\n<\/code><\/pre>\n<h3>Build from source<\/h3>\n<p>Consult the Wiki for detailed information about how to:<\/p>\n<ul>\n<li>Build for OSX or<\/li>\n<li>Build for iOS.<\/li>\n<\/ul>\n<h3>Include it in your project<\/h3>\n<p>Add <code>#import<\/code> to your source file.<\/p>\n<h2>What does it look like?<\/h2>\n<pre><code>NMSSHSession *session = [NMSSHSession connectToHost:@\"127.0.0.1:22\"\n                                       withUsername:@\"user\"];\n\nif (session.isConnected) {\n    [session authenticateByPassword:@\"pass\"];\n\n    if (session.isAuthorized) {\n        NSLog(@\"Authentication succeeded\");\n    }\n}\n    \nNSError *error = nil;\nNSString *response = [session.channel execute:@\"ls -l \/var\/www\/\" error:&amp;error];\nNSLog(@\"List of my sites: %@\", response);\n    \nBOOL success = [session.channel uploadFile:@\"~\/index.html\" to:@\"\/var\/www\/9muses.se\/\"];\n\n[session disconnect];\n<\/code><\/pre>\n<h2>API Documentation<\/h2>\n<p>API documentation for NMSSH is available at http:\/\/cocoadocs.org\/docsets\/NMSSH\/.<\/p>\n<h2>Guidelines for contributions<\/h2>\n<ul>\n<li>Follow the code conventions.<\/li>\n<li>Fork NMSSH and create a feature branch. Develop your feature.<\/li>\n<li>Open a pull request.<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> Make sure that you have <em>documented your code<\/em> and that you <em>follow the code conventions<\/em> before opening a pull request.<\/p>\n<h2>NMSSH is used in<\/h2>\n<h2>Developed by<\/h2>\n<h3>Core team<\/h3>\n<ul>\n<li>Christoffer Lejdborg (@Lejdborg) (creator)<\/li>\n<li>Tommaso Madonia (@Frugghi)<\/li>\n<\/ul>\n<h3>Contributors<\/h3>\n<h2>License<\/h2>\n<p>Copyright \u00a9 2014 Nine Muses AB<\/p>\n<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<\/p>\n<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<\/p>\n<p>THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NMSSH is a clean, easy-to-use, unit tested framework for iOS and OSX that wraps libssh2. Are you using NMSSH for something cool? Let me know. Questions &amp; Issues If you encounter an issue or have any questions about implementing NMSSH, please post them in the issue tracker \u2013 I do not offer free support via [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7625","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7625"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7625\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}