AVC errors are logged in journal or in audit.log. ausearch -m AVC is helpfult too.
Needs Triage (15)
Sat, Sep 26
Fri, Sep 25
How can I check AVC errors?
Do you have some AVC errors? Does it work with SELinux in permissive?
Yes I have enabled SELinux.
$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Memory protection checking: actual (secure) Max kernel policy version: 33
Is your user somehow restricted (for example by SELinux)? Do you have some AVC errors? Does it work with SELinux in permissive?
Just iun case .. I have installed uid_wrapper
]$ rpm -ql uid_wrapper /usr/lib/.build-id /usr/lib/.build-id/de /usr/lib/.build-id/de/92a25d0d0241dee4c96f47ebc0ec9b76c8154a /usr/lib64/cmake/uid_wrapper /usr/lib64/cmake/uid_wrapper/uid_wrapper-config-version.cmake /usr/lib64/cmake/uid_wrapper/uid_wrapper-config.cmake /usr/lib64/libuid_wrapper.so /usr/lib64/libuid_wrapper.so.0 /usr/lib64/libuid_wrapper.so.0.0.8 /usr/lib64/pkgconfig/uid_wrapper.pc /usr/share/man/man1/uid_wrapper.1.gz
Thu, Sep 24
I have the issue with libssh 0.9.2. I have tested with version 0.9.4 and it seems ok.
Wed, Sep 23
Tue, Sep 22
We are not primarily C++ developers so the C++ wrapper is the minimal support we could provide. If you know how to do this in sensible way, submitting a pull request with the patch (ideally also with demonstration in examples) would be the simplest way how to get this in.
Sun, Sep 20
Build with https://git.libssh.org/projects/libssh.git/snapshot/libssh-b1bbd20dfa8adc784c03fa74d8c81c30671d011b.tar.gz
Fri, Sep 11
It's not an issue about libssh. In fact, we can only open 1 channel on the ssh connection. It's because of the software: Wallix bastion. Thanks for the help!
Thu, Sep 3
Some server logs might be helpful, but it looks like it is some non-standard ssh implementation so it might be hard.
I use exactly that functions: https://github.com/garnier-quentin/perl-libssh/blob/master/lib/Libssh/Sftp.pm#L69
Please, share what code did you use (what function calls). The server can be restrticted to SFTP only and if you try to open different channel, it can fail. To create sftp channel, you should use just sftp_new(), sftp_init() as in the examples/samplesftp.c.
Aug 26 2020
Application works fine with out invoking (any) ssh.lib functions, only it is an issue when I invoke ssh library. It works fine in windows-10 not on windows-7
Could you please specify which API you have to comment out to make it to work?