summaryrefslogtreecommitdiffstats
path: root/examples/libsshpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/libsshpp.cpp')
-rw-r--r--examples/libsshpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/libsshpp.cpp b/examples/libsshpp.cpp
index 05fa749..8f042a4 100644
--- a/examples/libsshpp.cpp
+++ b/examples/libsshpp.cpp
@@ -23,7 +23,7 @@ int main(int argc, const char **argv){
else
session.setOption(SSH_OPTIONS_HOST,"localhost");
session.connect();
- session.userauthAutopubkey();
+ session.userauthPublickeyAuto();
session.disconnect();
} catch (ssh::SshException e){
std::cout << "Error during connection : ";