Page MenuHomePhabricator

Libssh v0.9.4 implementation linking against libgcrypt seems to be broken
Closed, ResolvedPublic

Description

libssh linked against libgcrypt does not work, while using openssl does.
When my app trying to access an ssh server via public/private key authenticatication and passphrase, works as expected when libssh is linked agains openssl, but the same key does not work using libssh linked against libgcrypt.

The encryption algorithm is supported.

The keys are make as following:

  • Create PEM key openssl genpkey -algorithm RSA -out test -aes-256-cbc -pkeyopt rsa_keygen_bits:4096
  • Extract pub key to send to the server:

ssh-keygen -f test -y > test.pub

  • Send pub key to the server:

ssh-copy-id -i /tmp/keys/test.pub test@server

  • Test new key via ssh (this worked as expected)

ssh -i /tmp/keys/test test@server

Now, using my application with libssh 0.9.4 it is not able to authenticate against the server. (If I link agains opoenssl, does it)

My environment:
Debian buster
$ dpkg -l |grep libgcrypt
ii libgcrypt11-dev 1.5.4-3+really1.7.6-2+deb9u3 amd64 transitional libgcrypt11-dev package
ii libgcrypt20:amd64 1.8.4-5 amd64 LGPL Crypto library - runtime library
ii libgcrypt20-dev 1.8.4-5 amd64 LGPL Crypto library - development files

$ cmake -DCMAKE_INSTALL_PREFIX=/home/jnicola/install -DWITH_GCRYPT=ON ..

  • The C compiler identification is GNU 8.3.0
  • Check for working C compiler: /usr/bin/cc
  • Check for working C compiler: /usr/bin/cc -- works
  • Detecting C compiler ABI info
  • Detecting C compiler ABI info - done
  • Detecting C compile features
  • Detecting C compile features - done
  • Performing Test REQUIRED_FLAGS_WERROR
  • Performing Test REQUIRED_FLAGS_WERROR - Success
  • Performing Test WITH_STD_GNU99_FLAG
  • Performing Test WITH_STD_GNU99_FLAG - Success
  • Performing Test WITH_WPEDANTIC_FLAG
  • Performing Test WITH_WPEDANTIC_FLAG - Success
  • Performing Test WITH_WALL_FLAG
  • Performing Test WITH_WALL_FLAG - Success
  • Performing Test WITH_WSHADOW_FLAG
  • Performing Test WITH_WSHADOW_FLAG - Success
  • Performing Test WITH_WMISSING_PROTOTYPES_FLAG
  • Performing Test WITH_WMISSING_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WCAST_ALIGN_FLAG
  • Performing Test WITH_WCAST_ALIGN_FLAG - Success
  • Performing Test WITH_WERROR_ADDRESS_FLAG
  • Performing Test WITH_WERROR_ADDRESS_FLAG - Success
  • Performing Test WITH_WSTRICT_PROTOTYPES_FLAG
  • Performing Test WITH_WSTRICT_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WERROR_STRICT_PROTOTYPES_FLAG
  • Performing Test WITH_WERROR_STRICT_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WWRITE_STRINGS_FLAG
  • Performing Test WITH_WWRITE_STRINGS_FLAG - Success
  • Performing Test WITH_WERROR_WRITE_STRINGS_FLAG
  • Performing Test WITH_WERROR_WRITE_STRINGS_FLAG - Success
  • Performing Test WITH_WERROR_IMPLICIT_FUNCTION_DECLARATION_FLAG
  • Performing Test WITH_WERROR_IMPLICIT_FUNCTION_DECLARATION_FLAG - Success
  • Performing Test WITH_WPOINTER_ARITH_FLAG
  • Performing Test WITH_WPOINTER_ARITH_FLAG - Success
  • Performing Test WITH_WERROR_POINTER_ARITH_FLAG
  • Performing Test WITH_WERROR_POINTER_ARITH_FLAG - Success
  • Performing Test WITH_WDECLARATION_AFTER_STATEMENT_FLAG
  • Performing Test WITH_WDECLARATION_AFTER_STATEMENT_FLAG - Success
  • Performing Test WITH_WERROR_DECLARATION_AFTER_STATEMENT_FLAG
  • Performing Test WITH_WERROR_DECLARATION_AFTER_STATEMENT_FLAG - Success
  • Performing Test WITH_WRETURN_TYPE_FLAG
  • Performing Test WITH_WRETURN_TYPE_FLAG - Success
  • Performing Test WITH_WERROR_RETURN_TYPE_FLAG
  • Performing Test WITH_WERROR_RETURN_TYPE_FLAG - Success
  • Performing Test WITH_WUNINITIALIZED_FLAG
  • Performing Test WITH_WUNINITIALIZED_FLAG - Success
  • Performing Test WITH_WERROR_UNINITIALIZED_FLAG
  • Performing Test WITH_WERROR_UNINITIALIZED_FLAG - Success
  • Performing Test WITH_WIMPLICIT_FALLTHROUGH_FLAG
  • Performing Test WITH_WIMPLICIT_FALLTHROUGH_FLAG - Success
  • Performing Test WITH_WERROR_STRICT_OVERFLOW_FLAG
  • Performing Test WITH_WERROR_STRICT_OVERFLOW_FLAG - Success
  • Performing Test WITH_WSTRICT_OVERFLOW_2_FLAG
  • Performing Test WITH_WSTRICT_OVERFLOW_2_FLAG - Success
  • Performing Test WITH_WNO_FORMAT_ZERO_LENGTH_FLAG
  • Performing Test WITH_WNO_FORMAT_ZERO_LENGTH_FLAG - Success
  • Performing Test WITH_WMISSING_FIELD_INITIALIZERS_FLAG
  • Performing Test WITH_WMISSING_FIELD_INITIALIZERS_FLAG - Success
  • Performing Test WITH_WSIGN_COMPARE_FLAG
  • Performing Test WITH_WSIGN_COMPARE_FLAG - Success
  • Performing Test REQUIRED_FLAGS_WFORMAT
  • Performing Test REQUIRED_FLAGS_WFORMAT - Success
  • Performing Test WITH_WFORMAT_SECURITY_FLAG
  • Performing Test WITH_WFORMAT_SECURITY_FLAG - Success
  • Performing Test WITH_WERROR_FORMAT_SECURITY_FLAG
  • Performing Test WITH_WERROR_FORMAT_SECURITY_FLAG - Success
  • Performing Test WITH_FNO_COMMON_FLAG
  • Performing Test WITH_FNO_COMMON_FLAG - Success
  • Performing Test WITH_STACK_PROTECTOR_STRONG
  • Performing Test WITH_STACK_PROTECTOR_STRONG - Success
  • Performing Test WITH_STACK_CLASH_PROTECTION
  • Performing Test WITH_STACK_CLASH_PROTECTION - Success
  • Performing Test WITH_WNO_DEPRECATED_DECLARATIONS_FLAG
  • Performing Test WITH_WNO_DEPRECATED_DECLARATIONS_FLAG - Success
  • Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
  • Found GCrypt: /usr/include (found suitable version "1.8.4", minimum required is "1.5.0")
  • Looking for pthread.h
  • Looking for pthread.h - found
  • Looking for pthread_create
  • Looking for pthread_create - not found
  • Check if compiler accepts -pthread
  • Check if compiler accepts -pthread - yes
  • Found Threads: TRUE
  • Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
  • Checking for module 'heimdal-gssapi'
  • Found heimdal-gssapi, version 7.5.0
  • Found GSSAPI: /usr/lib/x86_64-linux-gnu/heimdal/libgssapi.so;/usr/lib/x86_64-linux-gnu/heimdal/libkrb5.so;/usr/lib/x86_64-linux-gnu/heimdal/libhcrypto.so;/usr/lib/x86_64-linux-gnu/libcom_err.so;/usr/lib/x86_64-linux-gnu/heimdal/libheimntlm.so;/usr/lib/x86_64-linux-gnu/heimdal/libhx509.so;/usr/lib/x86_64-linux-gnu/heimdal/libasn1.so;/usr/lib/x86_64-linux-gnu/heimdal/libwind.so;/usr/lib/x86_64-linux-gnu/heimdal/libwind.so
  • Found NaCl: /usr/lib/libnacl.a
  • Found PythonInterp: /home/jnicola/dev/ospd-openvas/.venv/bin/python (found version "3.7.3")
  • Could not find abimap in PATH. It can be found in PyPI as abimap (try pip install abimap)
  • Could NOT find ABIMap (missing: ABIMAP_EXECUTABLE) (Required is at least version "0.3.1")
  • Performing Test WITH_VISIBILITY_HIDDEN
  • Performing Test WITH_VISIBILITY_HIDDEN - Success
  • Looking for argp.h
  • Looking for argp.h - found
  • Looking for pty.h
  • Looking for pty.h - found
  • Looking for utmp.h
  • Looking for utmp.h - found
  • Looking for termios.h
  • Looking for termios.h - found
  • Looking for unistd.h
  • Looking for unistd.h - found
  • Looking for stdint.h
  • Looking for stdint.h - found
  • Looking for util.h
  • Looking for util.h - not found
  • Looking for libutil.h
  • Looking for libutil.h - not found
  • Looking for sys/time.h
  • Looking for sys/time.h - found
  • Looking for sys/utime.h
  • Looking for sys/utime.h - not found
  • Looking for sys/param.h
  • Looking for sys/param.h - found
  • Looking for arpa/inet.h
  • Looking for arpa/inet.h - found
  • Looking for byteswap.h
  • Looking for byteswap.h - found
  • Looking for glob.h
  • Looking for glob.h - found
  • Looking for valgrind/valgrind.h
  • Looking for valgrind/valgrind.h - found
  • Looking for isblank
  • Looking for isblank - found
  • Looking for strncpy
  • Looking for strncpy - found
  • Looking for strndup
  • Looking for strndup - found
  • Looking for strtoull
  • Looking for strtoull - found
  • Looking for explicit_bzero
  • Looking for explicit_bzero - found
  • Looking for memset_s
  • Looking for memset_s - not found
  • Performing Test HAVE_GLOB_GL_FLAGS_MEMBER
  • Performing Test HAVE_GLOB_GL_FLAGS_MEMBER - Success
  • Looking for glob
  • Looking for glob - found
  • Looking for vsnprintf
  • Looking for vsnprintf - found
  • Looking for snprintf
  • Looking for snprintf - found
  • Looking for poll
  • Looking for poll - found
  • Looking for select
  • Looking for select - found
  • Looking for getaddrinfo
  • Looking for getaddrinfo - found
  • Looking for ntohll
  • Looking for ntohll - not found
  • Looking for htonll
  • Looking for htonll - not found
  • Looking for clock_gettime in rt
  • Looking for clock_gettime in rt - found
  • Looking for forkpty in util
  • Looking for forkpty in util - found
  • Looking for cfmakeraw
  • Looking for cfmakeraw - found
  • Looking for __strtoull
  • Looking for __strtoull - not found
  • Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
  • Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Success
  • Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
  • Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Failed
  • Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE
  • Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE - Success
  • Performing Test HAVE_DESTRUCTOR_ATTRIBUTE
  • Performing Test HAVE_DESTRUCTOR_ATTRIBUTE - Success
  • Performing Test HAVE_FALLTHROUGH_ATTRIBUTE
  • Performing Test HAVE_FALLTHROUGH_ATTRIBUTE - Success
  • Performing Test HAVE_UNUSED_ATTRIBUTE
  • Performing Test HAVE_UNUSED_ATTRIBUTE - Success
  • Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
  • Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Success
  • Performing Test HAVE_COMPILERFUNC
  • Performing Test HAVE_COMPILERFUNC - Success
  • Performing Test HAVE_COMPILERFUNCTION
  • Performing Test HAVE_COMPILERFUNCTION - Success
  • Performing Test HAVE_LD_VERSION_SCRIPT
  • Performing Test HAVE_LD_VERSION_SCRIPT - Success
  • Check if the system is big endian
  • Searching 16 bit integer
  • Looking for sys/types.h
  • Looking for sys/types.h - found
  • Looking for stddef.h
  • Looking for stddef.h - found
  • Check size of unsigned short
  • Check size of unsigned short - done
  • Using unsigned short
  • Check if the system is big endian - little endian
  • Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  • Threads_FOUND=TRUE
  • The CXX compiler identification is GNU 8.3.0
  • Check for working CXX compiler: /usr/bin/c++
  • Check for working CXX compiler: /usr/bin/c++ -- works
  • Detecting CXX compiler ABI info
  • Detecting CXX compiler ABI info - done
  • Detecting CXX compile features
  • Detecting CXX compile features - done
  • ************
  • ** libssh build options : **
  • zlib support: ON
  • libgcrypt support: ON
  • libmbedTLS support: OFF
  • libnacl support: ON
  • SFTP support: ON
  • Server support : ON
  • GSSAPI support : ON
  • GEX support : ON
  • Pcap debugging support : ON
  • Build shared library: ON
  • Unit testing: OFF
  • Client code testing: OFF
  • Blowfish cipher support: OFF
  • Server code testing: OFF
  • Public API documentation generation
  • Benchmarks: OFF
  • Symbol versioning: ON
  • Allow ABI break: OFF
  • Release is final:
  • Global client config: /etc/ssh/ssh_config
  • Global bind config: /etc/ssh/libssh_server_config
  • ************
  • Configuring done
  • Generating done
  • Build files have been written to: /home/jnicola/Downloads/libssh-0.9.4/build

(.venv) jnicola@host:~/Downloads/libssh-0.9.4/build$
(.venv) jnicola@host:~/Downloads/libssh-0.9.4/build$ make -j4
Scanning dependencies of target ssh
[ 2%] Building C object src/CMakeFiles/ssh.dir/auth.c.o
[ 2%] Building C object src/CMakeFiles/ssh.dir/base64.c.o
[ 0%] Building C object src/CMakeFiles/ssh.dir/bignum.c.o
[ 3%] Building C object src/CMakeFiles/ssh.dir/agent.c.o
[ 4%] Building C object src/CMakeFiles/ssh.dir/buffer.c.o
[ 5%] Building C object src/CMakeFiles/ssh.dir/callbacks.c.o
[ 6%] Building C object src/CMakeFiles/ssh.dir/channels.c.o
[ 7%] Building C object src/CMakeFiles/ssh.dir/client.c.o
[ 8%] Building C object src/CMakeFiles/ssh.dir/config.c.o
[ 8%] Building C object src/CMakeFiles/ssh.dir/connect.c.o
[ 9%] Building C object src/CMakeFiles/ssh.dir/connector.c.o
[ 10%] Building C object src/CMakeFiles/ssh.dir/curve25519.c.o
[ 11%] Building C object src/CMakeFiles/ssh.dir/dh.c.o
[ 12%] Building C object src/CMakeFiles/ssh.dir/ecdh.c.o
[ 12%] Building C object src/CMakeFiles/ssh.dir/error.c.o
[ 13%] Building C object src/CMakeFiles/ssh.dir/getpass.c.o
[ 14%] Building C object src/CMakeFiles/ssh.dir/init.c.o
[ 15%] Building C object src/CMakeFiles/ssh.dir/kdf.c.o
[ 16%] Building C object src/CMakeFiles/ssh.dir/known_hosts.c.o
[ 17%] Building C object src/CMakeFiles/ssh.dir/kex.c.o
[ 17%] Building C object src/CMakeFiles/ssh.dir/knownhosts.c.o
[ 18%] Building C object src/CMakeFiles/ssh.dir/legacy.c.o
[ 19%] Building C object src/CMakeFiles/ssh.dir/log.c.o
[ 20%] Building C object src/CMakeFiles/ssh.dir/match.c.o
[ 21%] Building C object src/CMakeFiles/ssh.dir/messages.c.o
[ 22%] Building C object src/CMakeFiles/ssh.dir/misc.c.o
[ 23%] Building C object src/CMakeFiles/ssh.dir/packet.c.o
[ 23%] Building C object src/CMakeFiles/ssh.dir/options.c.o
[ 24%] Building C object src/CMakeFiles/ssh.dir/packet_cb.c.o
[ 25%] Building C object src/CMakeFiles/ssh.dir/packet_crypt.c.o
[ 26%] Building C object src/CMakeFiles/ssh.dir/pcap.c.o
[ 27%] Building C object src/CMakeFiles/ssh.dir/pki.c.o
[ 29%] Building C object src/CMakeFiles/ssh.dir/poll.c.o
[ 29%] Building C object src/CMakeFiles/ssh.dir/session.c.o
[ 29%] Building C object src/CMakeFiles/ssh.dir/pki_container_openssh.c.o
[ 30%] Building C object src/CMakeFiles/ssh.dir/scp.c.o
[ 31%] Building C object src/CMakeFiles/ssh.dir/socket.c.o
[ 31%] Building C object src/CMakeFiles/ssh.dir/string.c.o
[ 32%] Building C object src/CMakeFiles/ssh.dir/threads.c.o
[ 33%] Building C object src/CMakeFiles/ssh.dir/wrapper.c.o
[ 34%] Building C object src/CMakeFiles/ssh.dir/external/bcrypt_pbkdf.c.o
[ 35%] Building C object src/CMakeFiles/ssh.dir/external/blowfish.c.o
[ 36%] Building C object src/CMakeFiles/ssh.dir/external/chacha.c.o
[ 36%] Building C object src/CMakeFiles/ssh.dir/external/poly1305.c.o
[ 37%] Building C object src/CMakeFiles/ssh.dir/chachapoly.c.o
[ 38%] Building C object src/CMakeFiles/ssh.dir/config_parser.c.o
[ 39%] Building C object src/CMakeFiles/ssh.dir/token.c.o
[ 40%] Building C object src/CMakeFiles/ssh.dir/pki_ed25519_common.c.o
[ 41%] Building C object src/CMakeFiles/ssh.dir/threads/noop.c.o
[ 41%] Building C object src/CMakeFiles/ssh.dir/threads/pthread.c.o
[ 42%] Building C object src/CMakeFiles/ssh.dir/threads/libgcrypt.c.o
[ 43%] Building C object src/CMakeFiles/ssh.dir/libgcrypt.c.o
[ 44%] Building C object src/CMakeFiles/ssh.dir/gcrypt_missing.c.o
[ 45%] Building C object src/CMakeFiles/ssh.dir/pki_gcrypt.c.o
[ 46%] Building C object src/CMakeFiles/ssh.dir/ecdh_gcrypt.c.o
[ 46%] Building C object src/CMakeFiles/ssh.dir/dh_key.c.o
[ 47%] Building C object src/CMakeFiles/ssh.dir/pki_ed25519.c.o
[ 48%] Building C object src/CMakeFiles/ssh.dir/external/ed25519.c.o
[ 49%] Building C object src/CMakeFiles/ssh.dir/external/fe25519.c.o
[ 50%] Building C object src/CMakeFiles/ssh.dir/external/ge25519.c.o
[ 51%] Building C object src/CMakeFiles/ssh.dir/external/sc25519.c.o
[ 51%] Building C object src/CMakeFiles/ssh.dir/sftp.c.o
[ 52%] Building C object src/CMakeFiles/ssh.dir/sftpserver.c.o
[ 53%] Building C object src/CMakeFiles/ssh.dir/server.c.o
[ 54%] Building C object src/CMakeFiles/ssh.dir/bind_config.c.o
[ 55%] Building C object src/CMakeFiles/ssh.dir/bind.c.o
[ 55%] Building C object src/CMakeFiles/ssh.dir/dh-gex.c.o
[ 56%] Building C object src/CMakeFiles/ssh.dir/gzip.c.o
[ 57%] Building C object src/CMakeFiles/ssh.dir/gssapi.c.o
[ 58%] Linking C shared library ../lib/libssh.so
[ 58%] Built target ssh
Scanning dependencies of target libssh_scp
Scanning dependencies of target libsshpp_noexcept
Scanning dependencies of target ssh-client
Scanning dependencies of target sshnetcat
[ 59%] Building C object examples/CMakeFiles/libssh_scp.dir/libssh_scp.c.o
[ 60%] Building CXX object examples/CMakeFiles/libsshpp_noexcept.dir/libsshpp_noexcept.cpp.o
[ 61%] Building C object examples/CMakeFiles/sshnetcat.dir/sshnetcat.c.o
[ 62%] Building C object examples/CMakeFiles/ssh-client.dir/ssh_client.c.o
[ 63%] Building C object examples/CMakeFiles/libssh_scp.dir/authentication.c.o
[ 64%] Building C object examples/CMakeFiles/sshnetcat.dir/authentication.c.o
[ 65%] Building C object examples/CMakeFiles/ssh-client.dir/authentication.c.o
[ 66%] Building C object examples/CMakeFiles/libssh_scp.dir/knownhosts.c.o
[ 67%] Building C object examples/CMakeFiles/libssh_scp.dir/connect_ssh.c.o
[ 68%] Building C object examples/CMakeFiles/sshnetcat.dir/knownhosts.c.o
[ 68%] Building C object examples/CMakeFiles/ssh-client.dir/knownhosts.c.o
[ 68%] Linking C executable libssh_scp
[ 69%] Building C object examples/CMakeFiles/ssh-client.dir/connect_ssh.c.o
[ 70%] Building C object examples/CMakeFiles/sshnetcat.dir/connect_ssh.c.o
[ 71%] Linking CXX executable libsshpp_noexcept
[ 71%] Built target libssh_scp
[ 72%] Linking C executable ssh-client
[ 73%] Linking C executable sshnetcat
Scanning dependencies of target scp_download
[ 74%] Building C object examples/CMakeFiles/scp_download.dir/scp_download.c.o
[ 74%] Building C object examples/CMakeFiles/scp_download.dir/authentication.c.o
[ 74%] Built target ssh-client
[ 74%] Built target sshnetcat
Scanning dependencies of target samplesshd-cb
[ 74%] Built target libsshpp_noexcept
Scanning dependencies of target proxy
[ 75%] Building C object examples/CMakeFiles/scp_download.dir/knownhosts.c.o
Scanning dependencies of target samplesftp
[ 75%] Building C object examples/CMakeFiles/samplesshd-cb.dir/samplesshd-cb.c.o
[ 76%] Building C object examples/CMakeFiles/proxy.dir/proxy.c.o
[ 77%] Building C object examples/CMakeFiles/samplesftp.dir/samplesftp.c.o
[ 78%] Linking C executable samplesshd-cb
[ 79%] Building C object examples/CMakeFiles/scp_download.dir/connect_ssh.c.o
[ 79%] Linking C executable proxy
[ 80%] Building C object examples/CMakeFiles/samplesftp.dir/authentication.c.o
[ 81%] Linking C executable scp_download
[ 82%] Building C object examples/CMakeFiles/samplesftp.dir/knownhosts.c.o
[ 82%] Built target samplesshd-cb
[ 82%] Built target proxy
Scanning dependencies of target sshd_direct-tcpip
Scanning dependencies of target samplesshd-kbdint
[ 83%] Building C object examples/CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o
[ 84%] Building C object examples/CMakeFiles/samplesftp.dir/connect_ssh.c.o
[ 85%] Building C object examples/CMakeFiles/samplesshd-kbdint.dir/samplesshd-kbdint.c.o
[ 85%] Built target scp_download
Scanning dependencies of target keygen
[ 85%] Building C object examples/CMakeFiles/keygen.dir/keygen.c.o
[ 86%] Linking C executable samplesshd-kbdint
[ 87%] Linking C executable samplesftp
[ 87%] Linking C executable sshd_direct-tcpip
[ 88%] Linking C executable keygen
[ 88%] Built target samplesshd-kbdint
Scanning dependencies of target ssh_server_fork
[ 88%] Built target samplesftp
[ 89%] Building C object examples/CMakeFiles/ssh_server_fork.dir/ssh_server_fork.c.o
Scanning dependencies of target exec
[ 89%] Building C object examples/CMakeFiles/exec.dir/exec.c.o
[ 89%] Built target sshd_direct-tcpip
Scanning dependencies of target senddata
[ 89%] Built target keygen
[ 90%] Building C object examples/CMakeFiles/senddata.dir/senddata.c.o
[ 91%] Building C object examples/CMakeFiles/exec.dir/authentication.c.o
Scanning dependencies of target libsshpp
[ 92%] Linking C executable ssh_server_fork
[ 93%] Building CXX object examples/CMakeFiles/libsshpp.dir/libsshpp.cpp.o
[ 94%] Building C object examples/CMakeFiles/senddata.dir/authentication.c.o
[ 95%] Building C object examples/CMakeFiles/exec.dir/knownhosts.c.o
[ 95%] Built target ssh_server_fork
[ 96%] Building C object examples/CMakeFiles/exec.dir/connect_ssh.c.o
[ 96%] Building C object examples/CMakeFiles/senddata.dir/knownhosts.c.o
[ 97%] Building C object examples/CMakeFiles/senddata.dir/connect_ssh.c.o
[ 98%] Linking C executable exec
[ 99%] Linking C executable senddata
[ 99%] Built target exec
[ 99%] Built target senddata
[100%] Linking CXX executable libsshpp
[100%] Built target libsshpp
(.venv) jnicola@host:~/Downloads/libssh-0.9.4/build$ make install
[ 58%] Built target ssh
[ 60%] Built target libsshpp_noexcept
[ 64%] Built target ssh-client
[ 69%] Built target sshnetcat
[ 73%] Built target libssh_scp
[ 77%] Built target scp_download
[ 78%] Built target samplesshd-cb
[ 79%] Built target proxy
[ 84%] Built target samplesftp
[ 85%] Built target sshd_direct-tcpip
[ 87%] Built target samplesshd-kbdint
[ 88%] Built target keygen
[ 90%] Built target ssh_server_fork
[ 94%] Built target exec
[ 98%] Built target senddata
[100%] Built target libsshpp
Install the project...

  • Install configuration: ""
  • Installing: /home/jnicola/install/lib/pkgconfig/libssh.pc
  • Installing: /home/jnicola/install/lib/cmake/libssh/libssh-config-version.cmake
  • Up-to-date: /home/jnicola/install/include/libssh/callbacks.h
  • Up-to-date: /home/jnicola/install/include/libssh/libssh.h
  • Up-to-date: /home/jnicola/install/include/libssh/ssh2.h
  • Up-to-date: /home/jnicola/install/include/libssh/legacy.h
  • Up-to-date: /home/jnicola/install/include/libssh/libsshpp.hpp
  • Up-to-date: /home/jnicola/install/include/libssh/sftp.h
  • Up-to-date: /home/jnicola/install/include/libssh/server.h
  • Installing: /home/jnicola/install/lib/libssh.so.4.8.5
  • Up-to-date: /home/jnicola/install/lib/libssh.so.4
  • Set runtime path of "/home/jnicola/install/lib/libssh.so.4.8.5" to ""
  • Up-to-date: /home/jnicola/install/lib/libssh.so
  • Installing: /home/jnicola/install/lib/cmake/libssh/libssh-config.cmake
  • Installing: /home/jnicola/install/lib/cmake/libssh/libssh-config-noconfig.cmake

Event Timeline

jjnicola created this task.Aug 14 2020, 2:53 PM
rgrewe added a subscriber: rgrewe.Aug 14 2020, 3:12 PM
Jakuje added a subscriber: Jakuje.Aug 14 2020, 6:44 PM

Can you share verbose libssh log from your application attempting to log in? It should give you some idea what went wrong with this attempt.

Hi!

Well, the log shows
[2020/08/17 09:03:59.536616, 1] pki_private_key_from_base64: Unknown or invalid private key.

While the same key used with openssl works as expected.

Regards,
Juan

libssh + libgcrypt (login fail):

[2020/08/17 09:03:59.440148, 3] ssh_config_parse_file: Reading configuration data from /etc/ssh/ssh_config
[2020/08/17 09:03:59.440182, 2] ssh_config_parse_line: Unapplicable option: SendEnv, line: 49
[2020/08/17 09:03:59.440189, 1] ssh_config_parse_line: Unsupported option: HashKnownHosts, line: 50
[2020/08/17 09:03:59.440214, 2] ssh_connect: libssh 0.9.3 (c) 2003-2019 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_pthread
[2020/08/17 09:03:59.440222, 3] getai: host 192.168.10.128 matches an IP address
[2020/08/17 09:03:59.440269, 2] ssh_socket_connect: Nonblocking connection socket: 12
[2020/08/17 09:03:59.440274, 2] ssh_connect: Socket connecting, now waiting for the callbacks to work
[2020/08/17 09:03:59.440279, 3] ssh_connect: Actual timeout : 10000
[2020/08/17 09:03:59.440566, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.440571, 3] ssh_socket_pollcallback: Received POLLOUT in connecting state
[2020/08/17 09:03:59.440575, 1] socket_callback_connected: Socket connection callback: 1 (0)
[2020/08/17 09:03:59.440589, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.440599, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.447601, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.447615, 3] callback_receive_banner: Received banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:03:59.447619, 2] ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:03:59.447625, 2] ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:03:59.447633, 2] ssh_analyze_banner: We are talking to an OpenSSH client version: 6.7 (60700)
[2020/08/17 09:03:59.447895, 3] ssh_client_select_hostkeys: Order of wanted host keys: "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2020/08/17 09:03:59.447915, 1] ssh_known_hosts_read_entries: Failed to open the known_hosts file '/etc/ssh/ssh_known_hosts': No such file or directory
[2020/08/17 09:03:59.447919, 3] ssh_client_select_hostkeys: No key found in known_hosts; changing host key method to "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2020/08/17 09:03:59.447932, 4] ssh_list_kex: kex algos: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c
[2020/08/17 09:03:59.447935, 4] ssh_list_kex: server host key algo: ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
[2020/08/17 09:03:59.447937, 4] ssh_list_kex: encryption client->server: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
[2020/08/17 09:03:59.447940, 4] ssh_list_kex: encryption server->client: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
[2020/08/17 09:03:59.447945, 4] ssh_list_kex: mac algo client->server: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:03:59.447948, 4] ssh_list_kex: mac algo server->client: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:03:59.447952, 4] ssh_list_kex: compression algo client->server: none
[2020/08/17 09:03:59.447955, 4] ssh_list_kex: compression algo server->client: none
[2020/08/17 09:03:59.447960, 4] ssh_list_kex: languages client->server:
[2020/08/17 09:03:59.447966, 4] ssh_list_kex: languages server->client:
[2020/08/17 09:03:59.447992, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.447999, 3] packet_send2: packet: wrote [type=20, len=972, padding_size=6, comp=965, payload=965]
[2020/08/17 09:03:59.448006, 3] ssh_send_kex: SSH_MSG_KEXINIT sent
[2020/08/17 09:03:59.448014, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.448023, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:03:59.448028, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:03:59.448095, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.448105, 3] ssh_packet_socket_callback: packet: read type 20 [len=948,padding=4,comp=943,payload=943]
[2020/08/17 09:03:59.448109, 3] ssh_packet_process: Dispatching handler for packet type 20
[2020/08/17 09:03:59.448124, 4] ssh_list_kex: kex algos: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
[2020/08/17 09:03:59.448129, 4] ssh_list_kex: server host key algo: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
[2020/08/17 09:03:59.448134, 4] ssh_list_kex: encryption client->server: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[2020/08/17 09:03:59.448138, 4] ssh_list_kex: encryption server->client: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[2020/08/17 09:03:59.448143, 4] ssh_list_kex: mac algo client->server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:03:59.448149, 4] ssh_list_kex: mac algo server->client: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:03:59.448155, 4] ssh_list_kex: compression algo client->server: none,zlib@openssh.com
[2020/08/17 09:03:59.448160, 4] ssh_list_kex: compression algo server->client: none,zlib@openssh.com
[2020/08/17 09:03:59.448164, 4] ssh_list_kex: languages client->server:
[2020/08/17 09:03:59.448169, 4] ssh_list_kex: languages server->client:
[2020/08/17 09:03:59.448187, 2] ssh_kex_select_methods: Negotiated curve25519-sha256@libssh.org,ssh-ed25519,aes256-gcm@openssh.com,aes256-gcm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-256-etm@openssh.com,none,none,,
[2020/08/17 09:03:59.448291, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.448299, 3] packet_send2: packet: wrote [type=30, len=44, padding_size=6, comp=37, payload=37]
[2020/08/17 09:03:59.448303, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.448306, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:03:59.448309, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:03:59.492046, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.492080, 3] ssh_packet_socket_callback: packet: read type 31 [len=188,padding=8,comp=179,payload=179]
[2020/08/17 09:03:59.492088, 3] ssh_packet_process: Dispatching handler for packet type 31
[2020/08/17 09:03:59.492227, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.492236, 3] packet_send2: packet: wrote [type=21, len=12, padding_size=10, comp=1, payload=1]
[2020/08/17 09:03:59.492242, 4] ssh_packet_set_newkeys: called, direction = OUT
[2020/08/17 09:03:59.492315, 3] crypt_set_algorithms2: Set output algorithm to aes256-gcm@openssh.com
[2020/08/17 09:03:59.492328, 3] crypt_set_algorithms2: Set HMAC output algorithm to aead-gcm
[2020/08/17 09:03:59.492345, 3] crypt_set_algorithms2: Set input algorithm to aes256-gcm@openssh.com
[2020/08/17 09:03:59.492352, 3] crypt_set_algorithms2: Set HMAC input algorithm to aead-gcm
[2020/08/17 09:03:59.492425, 2] ssh_init_rekey_state: Set rekey after 4294967296 blocks
[2020/08/17 09:03:59.492430, 2] ssh_init_rekey_state: Set rekey after 4294967296 blocks
[2020/08/17 09:03:59.492473, 2] ssh_packet_client_curve25519_reply: SSH_MSG_NEWKEYS sent
[2020/08/17 09:03:59.492478, 3] ssh_packet_socket_callback: Processing 16 bytes left in socket buffer
[2020/08/17 09:03:59.492486, 3] ssh_packet_socket_callback: packet: read type 21 [len=12,padding=10,comp=1,payload=1]
[2020/08/17 09:03:59.492493, 3] ssh_packet_process: Dispatching handler for packet type 21
[2020/08/17 09:03:59.492498, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
[2020/08/17 09:03:59.492507, 4] ssh_pki_signature_verify: Going to verify a ssh-ed25519 type signature
[2020/08/17 09:03:59.510515, 2] ssh_packet_newkeys: Signature verified and valid
[2020/08/17 09:03:59.510533, 4] ssh_packet_set_newkeys: called, direction = IN
[2020/08/17 09:03:59.510541, 3] ssh_connect: current state : 7
[2020/08/17 09:03:59.510680, 3] packet_send2: packet: wrote [type=5, len=32, padding_size=14, comp=17, payload=17]
[2020/08/17 09:03:59.510693, 3] ssh_service_request: Sent SSH_MSG_SERVICE_REQUEST (service ssh-userauth)
[2020/08/17 09:03:59.510712, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 52
[2020/08/17 09:03:59.510724, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.510731, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.510741, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:03:59.510745, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:03:59.531466, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.531516, 3] ssh_packet_socket_callback: packet: read type 6 [len=32,padding=14,comp=17,payload=17]
[2020/08/17 09:03:59.531532, 3] ssh_packet_process: Dispatching handler for packet type 6
[2020/08/17 09:03:59.531554, 3] ssh_packet_service_accept: Received SSH_MSG_SERVICE_ACCEPT
[2020/08/17 09:03:59.531629, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.531658, 3] packet_send2: packet: wrote [type=50, len=48, padding_size=9, comp=38, payload=38]
[2020/08/17 09:03:59.531667, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.531672, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:03:59.531676, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:03:59.535760, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.535870, 3] ssh_packet_socket_callback: packet: read type 51 [len=32,padding=7,comp=24,payload=24]
[2020/08/17 09:03:59.535889, 3] ssh_packet_process: Dispatching handler for packet type 51
[2020/08/17 09:03:59.535903, 1] ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey,password
[2020/08/17 09:03:59.535925, 2] ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey,password
SSH available authentication methods: password publickey
[2020/08/17 09:03:59.536045, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.536074, 3] packet_send2: packet: wrote [type=50, len=64, padding_size=16, comp=47, payload=47]
[2020/08/17 09:03:59.536089, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:03:59.536122, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:03:59.536131, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:03:59.536463, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:03:59.536486, 3] ssh_packet_socket_callback: packet: read type 51 [len=32,padding=7,comp=24,payload=24]
[2020/08/17 09:03:59.536495, 3] ssh_packet_process: Dispatching handler for packet type 51
[2020/08/17 09:03:59.536505, 1] ssh_packet_userauth_failure: Access denied for 'password'. Authentication that can continue: publickey,password
[2020/08/17 09:03:59.536512, 2] ssh_packet_userauth_failure: Access denied for 'password'. Authentication that can continue: publickey,password
[2020/08/17 09:03:59.536603, 2] ssh_pki_import_privkey_base64: Trying to decode privkey passphrase=true
[2020/08/17 09:03:59.536616, 1] pki_private_key_from_base64: Unknown or invalid private key.
[2020/08/17 09:03:59.536808, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:03:59.536842, 3] packet_send2: packet: wrote [type=1, len=32, padding_size=11, comp=20, payload=20]

libssh + openssl (login success):

[2020/08/17 09:11:00.516410, 3] ssh_config_parse_file: Reading configuration data from /etc/ssh/ssh_config
[2020/08/17 09:11:00.516457, 2] ssh_config_parse_line: Unapplicable option: SendEnv, line: 49
[2020/08/17 09:11:00.516465, 1] ssh_config_parse_line: Unsupported option: HashKnownHosts, line: 50
[2020/08/17 09:11:00.516501, 2] ssh_connect: libssh 0.9.3 (c) 2003-2019 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_pthread
[2020/08/17 09:11:00.516512, 3] getai: host 192.168.10.128 matches an IP address
[2020/08/17 09:11:00.516575, 2] ssh_socket_connect: Nonblocking connection socket: 12
[2020/08/17 09:11:00.516587, 2] ssh_connect: Socket connecting, now waiting for the callbacks to work
[2020/08/17 09:11:00.516593, 3] ssh_connect: Actual timeout : 10000
[2020/08/17 09:11:00.516947, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.516956, 3] ssh_socket_pollcallback: Received POLLOUT in connecting state
[2020/08/17 09:11:00.516966, 1] socket_callback_connected: Socket connection callback: 1 (0)
[2020/08/17 09:11:00.516983, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.516990, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.522739, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.522768, 3] callback_receive_banner: Received banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:11:00.522772, 2] ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:11:00.522781, 2] ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8
[2020/08/17 09:11:00.522800, 2] ssh_analyze_banner: We are talking to an OpenSSH client version: 6.7 (60700)
[2020/08/17 09:11:00.522950, 3] ssh_client_select_hostkeys: Order of wanted host keys: "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2020/08/17 09:11:00.523010, 1] ssh_known_hosts_read_entries: Failed to open the known_hosts file '/etc/ssh/ssh_known_hosts': No such file or directory
[2020/08/17 09:11:00.523027, 3] ssh_client_select_hostkeys: No key found in known_hosts; changing host key method to "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2020/08/17 09:11:00.523040, 4] ssh_list_kex: kex algos: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c
[2020/08/17 09:11:00.523048, 4] ssh_list_kex: server host key algo: ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
[2020/08/17 09:11:00.523057, 4] ssh_list_kex: encryption client->server: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
[2020/08/17 09:11:00.523065, 4] ssh_list_kex: encryption server->client: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc
[2020/08/17 09:11:00.523072, 4] ssh_list_kex: mac algo client->server: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:11:00.523077, 4] ssh_list_kex: mac algo server->client: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:11:00.523083, 4] ssh_list_kex: compression algo client->server: none
[2020/08/17 09:11:00.523090, 4] ssh_list_kex: compression algo server->client: none
[2020/08/17 09:11:00.523096, 4] ssh_list_kex: languages client->server:
[2020/08/17 09:11:00.523102, 4] ssh_list_kex: languages server->client:
[2020/08/17 09:11:00.523150, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.523162, 3] packet_send2: packet: wrote [type=20, len=972, padding_size=6, comp=965, payload=965]
[2020/08/17 09:11:00.523171, 3] ssh_send_kex: SSH_MSG_KEXINIT sent
[2020/08/17 09:11:00.523183, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN POLLOUT ), out buffer 0
[2020/08/17 09:11:00.523196, 3] ssh_packet_socket_callback: packet: read type 20 [len=948,padding=4,comp=943,payload=943]
[2020/08/17 09:11:00.523204, 3] ssh_packet_process: Dispatching handler for packet type 20
[2020/08/17 09:11:00.523250, 4] ssh_list_kex: kex algos: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
[2020/08/17 09:11:00.523259, 4] ssh_list_kex: server host key algo: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
[2020/08/17 09:11:00.523271, 4] ssh_list_kex: encryption client->server: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[2020/08/17 09:11:00.523278, 4] ssh_list_kex: encryption server->client: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
[2020/08/17 09:11:00.523285, 4] ssh_list_kex: mac algo client->server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:11:00.523292, 4] ssh_list_kex: mac algo server->client: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[2020/08/17 09:11:00.523301, 4] ssh_list_kex: compression algo client->server: none,zlib@openssh.com
[2020/08/17 09:11:00.523306, 4] ssh_list_kex: compression algo server->client: none,zlib@openssh.com
[2020/08/17 09:11:00.523314, 4] ssh_list_kex: languages client->server:
[2020/08/17 09:11:00.523321, 4] ssh_list_kex: languages server->client:
[2020/08/17 09:11:00.523343, 2] ssh_kex_select_methods: Negotiated curve25519-sha256@libssh.org,ssh-ed25519,aes256-gcm@openssh.com,aes256-gcm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-256-etm@openssh.com,none,none,,
[2020/08/17 09:11:00.523466, 3] packet_send2: packet: wrote [type=30, len=44, padding_size=6, comp=37, payload=37]
[2020/08/17 09:11:00.523482, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.523493, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.523500, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.523514, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.566141, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.566215, 3] ssh_packet_socket_callback: packet: read type 31 [len=188,padding=8,comp=179,payload=179]
[2020/08/17 09:11:00.566237, 3] ssh_packet_process: Dispatching handler for packet type 31
[2020/08/17 09:11:00.567036, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.567115, 3] packet_send2: packet: wrote [type=21, len=12, padding_size=10, comp=1, payload=1]
[2020/08/17 09:11:00.567150, 4] ssh_packet_set_newkeys: called, direction = OUT
[2020/08/17 09:11:00.567414, 3] crypt_set_algorithms2: Set output algorithm to aes256-gcm@openssh.com
[2020/08/17 09:11:00.567441, 3] crypt_set_algorithms2: Set HMAC output algorithm to aead-gcm
[2020/08/17 09:11:00.567458, 3] crypt_set_algorithms2: Set input algorithm to aes256-gcm@openssh.com
[2020/08/17 09:11:00.567476, 3] crypt_set_algorithms2: Set HMAC input algorithm to aead-gcm
[2020/08/17 09:11:00.567536, 2] ssh_init_rekey_state: Set rekey after 4294967296 blocks
[2020/08/17 09:11:00.567557, 2] ssh_init_rekey_state: Set rekey after 4294967296 blocks
[2020/08/17 09:11:00.567651, 2] ssh_packet_client_curve25519_reply: SSH_MSG_NEWKEYS sent
[2020/08/17 09:11:00.567673, 3] ssh_packet_socket_callback: Processing 16 bytes left in socket buffer
[2020/08/17 09:11:00.567692, 3] ssh_packet_socket_callback: packet: read type 21 [len=12,padding=10,comp=1,payload=1]
[2020/08/17 09:11:00.567703, 3] ssh_packet_process: Dispatching handler for packet type 21
[2020/08/17 09:11:00.567713, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
[2020/08/17 09:11:00.567737, 4] ssh_pki_signature_verify: Going to verify a ssh-ed25519 type signature
[2020/08/17 09:11:00.568377, 4] pki_verify_data_signature: Signature valid
[2020/08/17 09:11:00.568403, 2] ssh_packet_newkeys: Signature verified and valid
[2020/08/17 09:11:00.568423, 4] ssh_packet_set_newkeys: called, direction = IN
[2020/08/17 09:11:00.568448, 3] ssh_connect: current state : 7
[2020/08/17 09:11:00.568727, 3] packet_send2: packet: wrote [type=5, len=32, padding_size=14, comp=17, payload=17]
[2020/08/17 09:11:00.568751, 3] ssh_service_request: Sent SSH_MSG_SERVICE_REQUEST (service ssh-userauth)
[2020/08/17 09:11:00.568783, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 52
[2020/08/17 09:11:00.568812, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.568833, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.568847, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.568861, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.606032, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.606179, 3] ssh_packet_socket_callback: packet: read type 6 [len=32,padding=14,comp=17,payload=17]
[2020/08/17 09:11:00.606204, 3] ssh_packet_process: Dispatching handler for packet type 6
[2020/08/17 09:11:00.606236, 3] ssh_packet_service_accept: Received SSH_MSG_SERVICE_ACCEPT
[2020/08/17 09:11:00.606428, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.606507, 3] packet_send2: packet: wrote [type=50, len=48, padding_size=9, comp=38, payload=38]
[2020/08/17 09:11:00.606554, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.606579, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.606613, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.610127, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.610217, 3] ssh_packet_socket_callback: packet: read type 51 [len=32,padding=7,comp=24,payload=24]
[2020/08/17 09:11:00.610239, 3] ssh_packet_process: Dispatching handler for packet type 51
[2020/08/17 09:11:00.610263, 1] ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey,password
[2020/08/17 09:11:00.610293, 2] ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey,password
SSH available authentication methods: password publickey
[2020/08/17 09:11:00.610457, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.610515, 3] packet_send2: packet: wrote [type=50, len=64, padding_size=16, comp=47, payload=47]
[2020/08/17 09:11:00.610549, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.610568, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.610583, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.611137, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.611174, 3] ssh_packet_socket_callback: packet: read type 51 [len=32,padding=7,comp=24,payload=24]
[2020/08/17 09:11:00.611194, 3] ssh_packet_process: Dispatching handler for packet type 51
[2020/08/17 09:11:00.611216, 1] ssh_packet_userauth_failure: Access denied for 'password'. Authentication that can continue: publickey,password
[2020/08/17 09:11:00.611242, 2] ssh_packet_userauth_failure: Access denied for 'password'. Authentication that can continue: publickey,password
[2020/08/17 09:11:00.611372, 2] ssh_pki_import_privkey_base64: Trying to decode privkey passphrase=true
[2020/08/17 09:11:00.617058, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-512 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.617131, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-256 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.617177, 3] ssh_key_algorithm_allowed: Checking ssh-rsa with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.617392, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.618116, 3] packet_send2: packet: wrote [type=50, len=608, padding_size=13, comp=594, payload=594]
[2020/08/17 09:11:00.618403, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.618443, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.618714, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.619580, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.619667, 3] ssh_packet_socket_callback: packet: read type 60 [len=560,padding=8,comp=551,payload=551]
[2020/08/17 09:11:00.619685, 3] ssh_packet_process: Dispatching handler for packet type 60
[2020/08/17 09:11:00.619701, 4] ssh_packet_userauth_pk_ok: Received SSH_USERAUTH_PK_OK/INFO_REQUEST/GSSAPI_RESPONSE
[2020/08/17 09:11:00.619714, 4] ssh_packet_userauth_pk_ok: Assuming SSH_USERAUTH_PK_OK
[2020/08/17 09:11:00.619746, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-512 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.620055, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-256 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.620329, 3] ssh_key_algorithm_allowed: Checking ssh-rsa with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.620551, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-512 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.620777, 3] ssh_key_algorithm_allowed: Checking rsa-sha2-256 with list <ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
[2020/08/17 09:11:00.642292, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.642337, 3] packet_send2: packet: wrote [type=50, len=1136, padding_size=10, comp=1125, payload=1125]
[2020/08/17 09:11:00.642354, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.642362, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.642373, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.645324, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.645352, 3] ssh_packet_socket_callback: packet: read type 52 [len=16,padding=14,comp=1,payload=1]
[2020/08/17 09:11:00.645361, 3] ssh_packet_process: Dispatching handler for packet type 52
[2020/08/17 09:11:00.645367, 3] ssh_packet_userauth_success: Authentication successful
[2020/08/17 09:11:00.645372, 4] ssh_packet_userauth_success: Received SSH_USERAUTH_SUCCESS
[2020/08/17 09:11:00.645391, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=112, in_blocks=37
[2020/08/17 09:11:00.646427, 2] channel_open: Creating a channel 43 with 64000 window and 32768 max packet
[2020/08/17 09:11:00.646444, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=113, in_blocks=38
[2020/08/17 09:11:00.646487, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.646498, 3] packet_send2: packet: wrote [type=90, len=32, padding_size=7, comp=24, payload=24]
[2020/08/17 09:11:00.646506, 3] channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 43
[2020/08/17 09:11:00.646523, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.646531, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.646537, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.653197, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.653237, 3] ssh_packet_socket_callback: packet: read type 91 [len=32,padding=14,comp=17,payload=17]
[2020/08/17 09:11:00.653242, 3] ssh_packet_process: Dispatching handler for packet type 91
[2020/08/17 09:11:00.653247, 3] ssh_packet_channel_open_conf: Received SSH2_MSG_CHANNEL_OPEN_CONFIRMATION
[2020/08/17 09:11:00.653252, 2] ssh_packet_channel_open_conf: Received a CHANNEL_OPEN_CONFIRMATION for channel 43:0
[2020/08/17 09:11:00.653255, 2] ssh_packet_channel_open_conf: Remote window : 0, maxpacket : 32768
[2020/08/17 09:11:00.653261, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=113, in_blocks=38
[2020/08/17 09:11:00.653295, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=115, in_blocks=40
[2020/08/17 09:11:00.653359, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.653370, 3] packet_send2: packet: wrote [type=98, len=64, padding_size=16, comp=47, payload=47]
[2020/08/17 09:11:00.653375, 3] channel_request: Sent a SSH_MSG_CHANNEL_REQUEST pty-req
[2020/08/17 09:11:00.653406, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.653419, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.653431, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.654966, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.655066, 3] ssh_packet_socket_callback: packet: read type 99 [len=16,padding=10,comp=5,payload=5]
[2020/08/17 09:11:00.655078, 3] ssh_packet_process: Dispatching handler for packet type 99
[2020/08/17 09:11:00.655088, 3] ssh_packet_channel_success: Received SSH_CHANNEL_SUCCESS on channel (43:0)
[2020/08/17 09:11:00.655094, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=115, in_blocks=38
[2020/08/17 09:11:00.655102, 2] channel_request: Channel request pty-req success
[2020/08/17 09:11:00.655118, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=40
[2020/08/17 09:11:00.655267, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.655306, 3] packet_send2: packet: wrote [type=98, len=48, padding_size=8, comp=39, payload=39]
[2020/08/17 09:11:00.655317, 3] channel_request: Sent a SSH_MSG_CHANNEL_REQUEST window-change
[2020/08/17 09:11:00.655329, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=38
[2020/08/17 09:11:00.655355, 3] packet_send2: packet: wrote [type=98, len=32, padding_size=16, comp=15, payload=15]
[2020/08/17 09:11:00.655365, 3] channel_request: Sent a SSH_MSG_CHANNEL_REQUEST shell
[2020/08/17 09:11:00.655378, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 52
[2020/08/17 09:11:00.655391, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.655399, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:00.655404, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:00.655412, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:00.694528, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN ), out buffer 0
[2020/08/17 09:11:00.694565, 3] ssh_packet_socket_callback: packet: read type 93 [len=16,padding=6,comp=9,payload=9]
[2020/08/17 09:11:00.694569, 3] ssh_packet_process: Dispatching handler for packet type 93
[2020/08/17 09:11:00.694574, 2] channel_rcv_change_window: Adding 2097152 bytes to channel (43:0) (from 0 bytes)
[2020/08/17 09:11:00.694577, 3] ssh_packet_socket_callback: Processing 376 bytes left in socket buffer
[2020/08/17 09:11:00.694590, 3] ssh_packet_socket_callback: packet: read type 99 [len=16,padding=10,comp=5,payload=5]
[2020/08/17 09:11:00.694598, 3] ssh_packet_process: Dispatching handler for packet type 99
[2020/08/17 09:11:00.694603, 3] ssh_packet_channel_success: Received SSH_CHANNEL_SUCCESS on channel (43:0)
[2020/08/17 09:11:00.694608, 3] ssh_packet_socket_callback: Processing 340 bytes left in socket buffer
[2020/08/17 09:11:00.694614, 3] ssh_packet_socket_callback: packet: read type 94 [len=320,padding=17,comp=302,payload=302]
[2020/08/17 09:11:00.694619, 3] ssh_packet_process: Dispatching handler for packet type 94
[2020/08/17 09:11:00.694629, 3] channel_rcv_data: Channel receiving 293 bytes data in 0 (local win=64000 remote win=2097152)
[2020/08/17 09:11:00.694636, 3] channel_default_bufferize: placing 293 bytes into channel buffer (stdout)
[2020/08/17 09:11:00.694643, 3] channel_rcv_data: Channel windows are now (local win=63707 remote win=2097152)
[2020/08/17 09:11:00.694662, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=56
[2020/08/17 09:11:00.694699, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:00.694706, 3] packet_send2: packet: wrote [type=93, len=16, padding_size=6, comp=9, payload=9]
[2020/08/17 09:11:00.694714, 2] grow_window: growing window (channel 43:0) to 1280000 bytes
[2020/08/17 09:11:00.694726, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=56
[2020/08/17 09:11:00.694731, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=56
[2020/08/17 09:11:00.694737, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=117, in_blocks=56
[2020/08/17 09:11:00.694758, 2] channel_request: Channel request shell success
[2020/08/17 09:11:00.694997, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=59
[2020/08/17 09:11:00.695025, 3] packet_send2: packet: wrote [type=94, len=64, padding_size=5, comp=58, payload=58]
[2020/08/17 09:11:00.695034, 3] channel_write_common: channel_write wrote 49 bytes
[2020/08/17 09:11:00.695051, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 84
[2020/08/17 09:11:00.695064, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:01.695681, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLIN POLLOUT ), out buffer 0
[2020/08/17 09:11:01.695727, 3] ssh_packet_socket_callback: packet: read type 94 [len=80,padding=4,comp=75,payload=75]
[2020/08/17 09:11:01.695731, 3] ssh_packet_process: Dispatching handler for packet type 94
[2020/08/17 09:11:01.695736, 3] channel_rcv_data: Channel receiving 66 bytes data in 0 (local win=1280000 remote win=2097103)
[2020/08/17 09:11:01.695739, 3] channel_default_bufferize: placing 66 bytes into channel buffer (stdout)
[2020/08/17 09:11:01.695742, 3] channel_rcv_data: Channel windows are now (local win=1279934 remote win=2097103)
[2020/08/17 09:11:01.695744, 3] ssh_packet_socket_callback: Processing 236 bytes left in socket buffer
[2020/08/17 09:11:01.695747, 3] ssh_packet_socket_callback: packet: read type 94 [len=64,padding=4,comp=59,payload=59]
[2020/08/17 09:11:01.695749, 3] ssh_packet_process: Dispatching handler for packet type 94
[2020/08/17 09:11:01.695755, 3] channel_rcv_data: Channel receiving 50 bytes data in 0 (local win=1279934 remote win=2097103)
[2020/08/17 09:11:01.695762, 3] channel_default_bufferize: placing 50 bytes into channel buffer (stdout)
[2020/08/17 09:11:01.695766, 3] channel_rcv_data: Channel windows are now (local win=1279884 remote win=2097103)
[2020/08/17 09:11:01.695770, 3] ssh_packet_socket_callback: Processing 152 bytes left in socket buffer
[2020/08/17 09:11:01.695776, 3] ssh_packet_socket_callback: packet: read type 94 [len=32,padding=10,comp=21,payload=21]
[2020/08/17 09:11:01.695781, 3] ssh_packet_process: Dispatching handler for packet type 94
[2020/08/17 09:11:01.695786, 3] channel_rcv_data: Channel receiving 12 bytes data in 0 (local win=1279884 remote win=2097103)
[2020/08/17 09:11:01.695789, 3] channel_default_bufferize: placing 12 bytes into channel buffer (stdout)
[2020/08/17 09:11:01.695794, 3] channel_rcv_data: Channel windows are now (local win=1279872 remote win=2097103)
[2020/08/17 09:11:01.695797, 3] ssh_packet_socket_callback: Processing 100 bytes left in socket buffer
[2020/08/17 09:11:01.695805, 3] ssh_packet_socket_callback: packet: read type 94 [len=80,padding=4,comp=75,payload=75]
[2020/08/17 09:11:01.695813, 3] ssh_packet_process: Dispatching handler for packet type 94
[2020/08/17 09:11:01.695821, 3] channel_rcv_data: Channel receiving 66 bytes data in 0 (local win=1279872 remote win=2097103)
[2020/08/17 09:11:01.695830, 3] channel_default_bufferize: placing 66 bytes into channel buffer (stdout)
[2020/08/17 09:11:01.695838, 3] channel_rcv_data: Channel windows are now (local win=1279806 remote win=2097103)
[2020/08/17 09:11:01.695844, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:01.695848, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:01.695855, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:01.695861, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:01.695873, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:01.695883, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:01.695895, 3] ssh_channel_read_timeout: Read (487) buffered : 487 bytes. Window: 1279806
[2020/08/17 09:11:02.696840, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 0
[2020/08/17 09:11:02.696897, 4] ssh_socket_pollcallback: sending control flow event
[2020/08/17 09:11:02.696913, 4] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2020/08/17 09:11:04.699382, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:04.699595, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2020/08/17 09:11:04.699647, 3] packet_send2: packet: wrote [type=96, len=16, padding_size=10, comp=5, payload=5]
[2020/08/17 09:11:04.699656, 3] ssh_channel_send_eof: Sent a EOF on client channel (43:0)
[2020/08/17 09:11:04.699668, 3] ssh_packet_need_rekey: packet: [data_rekey_needed=0, out_blocks=120, in_blocks=68
[2020/08/17 09:11:04.699691, 3] packet_send2: packet: wrote [type=97, len=16, padding_size=10, comp=5, payload=5]
[2020/08/17 09:11:04.699698, 3] ssh_channel_close: Sent a close on client channel (43:0)
[2020/08/17 09:11:04.699712, 4] ssh_socket_pollcallback: Poll callback on socket 12 (POLLOUT ), out buffer 36
[2020/08/17 09:11:04.699731, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket

If I remember and read the code well, gcrypt does not have PEM parser (as it is mostly library for gnupg) so not all key formats are supported with gcrypt (we can do only the simple legacy PEM format, not the new PKCS8 PEM, which is default for some years in OpenSSL). OpenSSL provides sensible PEM parser which can parse quite much any key.

You can use ssh-keygen (or use libssh to generate keys for you) in either legacy PEM format or in OpenSSH format, which is supported regardless crypto backend.

Hi,
Thank you very much. Converting the key, I was able to login in the target system. This can be closed from my side.

Jakuje closed this task as Resolved.Aug 20 2020, 1:18 PM
Jakuje claimed this task.

Thank you for confirming it fixed your issue. Glad to help.