aboutsummaryrefslogtreecommitdiff
path: root/examples/libsshpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/libsshpp.cpp')
-rw-r--r--examples/libsshpp.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/libsshpp.cpp b/examples/libsshpp.cpp
new file mode 100644
index 00000000..eb415d8c
--- /dev/null
+++ b/examples/libsshpp.cpp
@@ -0,0 +1,10 @@
+
+#include <libssh/libsshpp.hpp>
+
+int main(int argc, const char **argv){
+ ssh::Session session;
+ session.setOption(SSH_OPTIONS_HOST,"localhost");
+ session.connect();
+ session.userauthAutopubkey();
+ return 0;
+}