We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to connect via ssh with KnownHostsCommand option set to any valid program makes ssh always fail with the following error:
KnownHostsCommand-ORDER <command> exited on signal 31 KnownHostsCommand failed
ssh -o KnownHostsCommand='/usr/bin/env true' localhost -p 8022
or more directly:
ssh -o KnownHostsCommand='/bin/true' localhost -p 8022
(or you could ssh to any valid addres/port with the option set)
ssh connects normally. This can be proved on a Linux desktop.
ssh
termux-info:
Termux Variables: TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.0 Packages CPU architecture: aarch64 Subscribed repositories: # sources.list deb https://mirrors.utermux.dev/termux/termux-main stable main # root-repo (sources.list.d/root.list) deb https://mirrors.utermux.dev/termux/termux-root root stable Updatable packages: command-not-found/stable 2.1.0-14 aarch64 [upgradable from: 2.1.0-13] freetype/stable 2.13.0-1 aarch64 [upgradable from: 2.13.0] glib/stable 2.76.0 aarch64 [upgradable from: 2.74.6] imagemagick/stable 7.1.1.3 aarch64 [upgradable from: 7.1.1.2] termux-tools version: 1.37.0 Android version: 12 Kernel build information: Linux localhost 4.14.256-QuicksilveR-ginkgo-v2.5/5cac8479 #1 SMP PREEMPT Wed Oct 19 07:00:07 PDT 2022 aarch64 Android Device manufacturer: Xiaomi Device model: Redmi Note 8 LD Variables: LD_LIBRARY_PATH=/run/current-system/profile/lib/vdpau:/data/data/com.termux/files/home/.config/guix/thunderbird-workaround-profile-libnotify/lib:/run/current-system/profile/lib/vdpau:/data/data/com.termux/files/home/.config/guix/thunderbird-workaround-profile-libnotify/lib: LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
The text was updated successfully, but these errors were encountered:
setres{g,u}id
openssh: Do not call setres{g,u}id for subprocess
4c63e89
Fixes #15632
dfa2932
Fixes termux/termux-packages#15632
Successfully merging a pull request may close this issue.
Problem description
Trying to connect via ssh with KnownHostsCommand option set to any valid program makes ssh always fail with the following error:
What steps will reproduce the bug?
ssh -o KnownHostsCommand='/usr/bin/env true' localhost -p 8022
or more directly:
ssh -o KnownHostsCommand='/bin/true' localhost -p 8022
(or you could ssh to any valid addres/port with the option set)
What is the expected behavior?
ssh
connects normally. This can be proved on a Linux desktop.System information
termux-info:
The text was updated successfully, but these errors were encountered: