这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: ssh-agent service failure #24492

@tcely

Description

@tcely

Problem description

The recommended way to use ssh-agent isn't working after using the suggested steps:

Unpacking openssh (10.0p2-4) over (10.0p2-3) ...
Setting up openssh-sftp-server (10.0p2-4) ...
Setting up openssh (10.0p2-4) ...

If you plan to use the 'ssh-agent'
it is recommended to run it as a service.
Run 'pkg i termux-services'
to install the ('runit') service manager
You can enable the ssh-agent service
using 'sv-enable ssh-agent'
You can also enable sshd to autostart
using 'sv-enable sshd'

The fix in termux/termux-services#28 would have made the error clearer.

After running:

$ . "${TERMUX__PREFIX:-"${PREFIX}"}"/etc/profile.d/start-services.sh

The error is no longer seen.

What steps will reproduce the bug?

$ pkg install termux-services
No mirror or mirror group selected. You might want to select one by running 'termux-change-repo'
Checking availability of current mirror:
[*] https://termux.cdn.lumito.net/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
termux-services is already the newest version (0.13-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sv-enable ssh-agent
fail: ssh-agent: unable to change to service directory: file does not exist
$ 

What is the expected behavior?

I think the ssh-agent service is meant to be running without any errors.

System information

$ termux-info
Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=2424
TERMUX_APP__BUILD_DATA_DIR=/data/data/com.termux
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c84,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.2
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c84,c257,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.cdn.lumito.net/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
13
Kernel build information:
Linux localhost 4.19.191-00031-g4f9f7e0e7c5-dirty #1 SMP PREEMPT Thu Apr 18 22:04:09 CST 2024 aarch64 Android
Device manufacturer:
TCL
Device model:
9466X
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething is not working properlyenhancementinactiveNo activity in a certain period of timeservicesThis issue is about runit services provided for use under Termux.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions