This repository has been archived by the owner. It is now read-only.
A script for compiling libssh2 for iOS Devices (iPhone, iPad, iPod Touch). The example app can connect to an server with SSH and execute commands.
Objective-C Shell Swift
Switch branches/tags
Nothing to show
Clone or download
x2on Merge pull request #36 from karwa/master
Update libSSH URL to use HTTPS
Latest commit 702d098 May 16, 2016

libssh2-for-iOS Build Status

This is a tutorial for using self-compiled builds of the libssh2-library for iOS. You can build apps with XCode and the official SDK from Apple with this. I also made a small example-app for using the libraries with XCode and the iPhone/iPhone-Simulator.


The example uses libssh2 to make an ssh connection to an ssh server. Then you can execute commands on the server and get the output in your app.

You can build the libssh2 library with openssl or with libgcrypt!


  • Xcode 7.1
  • Xcode Command Line Tools


Checkout the submodules:

git submodule init
git submodule update

libssh2 with openssl:

./ openssl

libssh2 with libgcrypt:

./ libgcrypt

Solve problems:

Check the log files in the bin folder


  • 2015-12-11: OpenSSL 1.0.2e
  • 2015-01-11: Support for Xcode 7 and iOS 9.1, OpenSSL 1.0.2d
  • 2015-01-11: OpenSSL 1.0.1k
  • 2015-01-06: Support for Xcode 6 and iOS 8.1, OpenSSL 1.0.1j
  • 2014-03-25: Support for Xcode 5.1 and iOS 7.1
  • 2013-09-26: Support for Xcode 5 and iOS 7
  • 2013-03-03: Move OpenSSL to submodule
  • 2013-03-02: OpenSSL 1.0.1e
  • 2013-01-01: libssh 1.4.3
  • 2012-05-29: OpenSSL 1.0.1c + libssh 1.4.2
  • 2011-02-08: OpenSSL 1.0.0d