1
1
libssh/examples
Eric Bentley db67fcbe88 examples: add public key authentication to ssh_server_fork
I noticed that there was no example showing server side public key encryption in the examples
so I added this one. I used authorizedkeys as a global to minimize the changes to the original
code as well as I was not sure the correct methodology of determining the .ssh directory location
for a user not using Linux. One code using the user parameter to determine the location to use
instead if desired.

Signed-off-by: Eric Bentley <ebentley66@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-24 17:48:04 +01:00
..
authentication.c examples: Reformat authenticaton.c 2018-09-20 15:37:23 +02:00
CMakeLists.txt cmake: Improve compiler flag detection 2018-08-20 18:42:03 +02:00
connect_ssh.c examples: Call correct functions on exit. 2011-04-14 14:16:58 +02:00
examples_common.h examples: Zero fds in sshnetcat 2018-10-24 09:48:35 +02:00
exec.c examples: Fix some memory leaks. 2011-04-15 19:05:53 +02:00
knownhosts.c examples: Use ssh_session_update_known_hosts() for updating known_hosts 2018-10-16 08:58:31 +02:00
libssh_scp.c examples: Add null checks in libssh_scp.c 2018-09-27 15:21:30 +02:00
libsshpp_noexcept.cpp auth: Make ssh_userauth_autopubkey legacy. 2011-08-25 10:19:09 +02:00
libsshpp.cpp auth: Make ssh_userauth_autopubkey legacy. 2011-08-25 10:19:09 +02:00
proxy.c examples: fix warning 2013-07-14 11:18:13 +02:00
samplesftp.c examples: Fix code style in samplesftp.c 2018-09-18 10:19:59 +02:00
samplesshd-cb.c examples: fix compilation warnings 2013-07-14 09:32:19 +02:00
samplesshd-kbdint.c examples: Explicitly track auth state in samplesshd-kbdint 2018-10-19 12:31:04 +02:00
scp_download.c examples: Make gobal variables static in scp_download 2018-06-30 14:37:04 +02:00
senddata.c examples: Define LIMIT as unsinged long 2018-06-30 14:37:04 +02:00
ssh_client.c examples: Reformat ssh_client 2018-08-31 10:21:06 +02:00
ssh_server_fork.c examples: add public key authentication to ssh_server_fork 2019-01-24 17:48:04 +01:00
sshnetcat.c examples: Zero fds in sshnetcat 2018-10-24 09:48:35 +02:00