Skip to content
New issue

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

[Bug]: okc-ssh-agent from okc-agents doesn't work #103

Open
sevmonster opened this issue Dec 1, 2024 · 0 comments
Open

[Bug]: okc-ssh-agent from okc-agents doesn't work #103

sevmonster opened this issue Dec 1, 2024 · 0 comments

Comments

@sevmonster
Copy link

sevmonster commented Dec 1, 2024

Problem description

See: DDoSolitary/OkcAgent#143 (comment)

TL;DR: okc-ssh-agent works on main repo, but does not on this one.

What steps will reproduce the bug?

~ $ pacman -Sy okc-agents
:: Synchronizing package databases...
 main is up to date
 x11 is up to date
 root is up to date
 tur is up to date
 tur-continuous is up to date
 tur-multilib is up to date
 gpkg is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) okc-agents-0.1.2-0

Total Download Size:   0.71 MiB
Total Installed Size:  3.65 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 okc-agents-0.1.2...   726.0 KiB  1243 KiB/s 00:01 100%
(1/1) checking keys in keyring                     100%
(1/1) checking package integrity                   100%
(1/1) loading package files                        100%
(1/1) checking for file conflicts                  100%
(1/1) checking available disk space                100%
:: Processing package changes...
(1/1) installing okc-agents                        100%
~ $ okc-ssh-agent -d&
[1] 28440
SSH_AUTH_SOCK="/data/data/com.termux/files/usr/tmp/okc-ssh-PW1fSokMnP/agent.28440"; export SSH_AUTH_SOCK;
echo Agent pid 28440;
Dec 01 00:13:33.186 INFO okc-ssh-agent, protocol_version: 0, version: 0.1.2
~ $ SSH_AUTH_SOCK="/data/data/com.termux/files/usr/tmp/okc-ssh-PW1fSokMnP/agent.28440"; export SSH_AUTH_SOCK;
echo Agent pid 28440;
Agent pid 28440
~ $ ssh sev@anywhere
Dec 01 00:14:04.008 INFO connected to client, id: 0
Dec 01 00:14:04.008 ERRO failed to accept the connection: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }, id: 0
sev@anywhere: Permission denied (publickey).
~ $ pacman -S bintools wget
resolving dependencies...
looking for conflicting packages...

Packages (6) binutils-bin-2.43.1-0
             binutils-libs-2.43.1-0  libuuid-2.40.2-2
             zstd-1.5.6-2  binutils-2.43.1-0
             wget-1.25.0-0

Total Installed Size:  21.58 MiB

:: Proceed with installation? [Y/n]
(6/6) checking keys in keyring                     100%
(6/6) checking package integrity                   100%
(6/6) loading package files                        100%
(6/6) checking for file conflicts                  100%
(6/6) checking available disk space                100%
:: Processing package changes...
(1/6) installing zstd                              100%
(2/6) installing binutils-libs                     100%
(3/6) installing binutils-bin                      100%
(4/6) installing binutils                          100%
(5/6) installing libuuid                           100%
(6/6) installing wget                              100%
~ $ wget -q https://packages.termux.dev/apt/termux-main/pool/main/o/okc-agents/okc-agents_0.1.2_aarch64.deb
~ $ ar xo okc-agents_0.1.2_aarch64.deb
~ $ tar xf data.tar.xz
~ $ cd data/data/com.termux/files/usr/bin
~/.../usr/bin $ ./okc-ssh-agent -d&
[2] 29609
SSH_AUTH_SOCK="/data/data/com.termux/files/usr/tmp/okc-ssh-niSOtDbXM8/agent.29609"; export SSH_AUTH_SOCK;
echo Agent pid 29609;
Dec 01 00:24:58.270 INFO okc-ssh-agent, protocol_version: 0, version: 0.
~/.../usr/bin $ SSH_AUTH_SOCK="/data/data/com.termux/files/usr/tmp/okc-ssh-niSOtDbXM8/agent.29609"; export SSH_AUTH_SOCK;
echo Agent pid 29609;
Agent pid 29609
~/.../usr/bin $ ssh sev@anywhere
Dec 01 00:27:07.856 INFO connected to client, id: 0
Dec 01 00:27:07.860 INFO listening on port 35277, id: 0
Dec 01 00:27:08.151 INFO broadcast sent, waiting for app to connect, id: 0
Dec 01 00:27:08.152 INFO app connected, start forwarding, remote_port: 54278, id: 0
# ...
Dec 01 00:27:08.160 INFO connection finished, id: 0

What is the expected behavior?

It works

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=pacman
TERMUX_APP_PID=18997
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=pacman
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# /data/data/com.termux/files/usr/etc/pacman.conf
[main]
Usage = All
Server = https://service.termux-pacman.dev/main/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/main/aarch64
[x11]
Usage = All
Server = https://service.termux-pacman.dev/x11/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/x11/aarch64
[root]
Usage = All
Server = https://service.termux-pacman.dev/root/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/root/aarch64
[tur]
Usage = All
Server = https://service.termux-pacman.dev/tur/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/tur/aarch64
[tur-continuous]
Usage = All
Server = https://service.termux-pacman.dev/tur-continuous/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/tur-continuous/aarch64
[tur-multilib]
Usage = All
Server = https://service.termux-pacman.dev/tur-multilib/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/tur-multilib/aarch64
[gpkg]
Usage = All
Server = https://service.termux-pacman.dev/gpkg/aarch64
Server = https://s3.amazonaws.com/termux-pacman.us/gpkg/aarch64
Updatable packages:
All packages up to date
termux-tools version:
1.44.1
Android version:
15
Kernel build information:
Linux localhost 5.10.226-android13-4-g7937eb2cdeb6 #1 SMP PREEMPT Sat Nov 23 06:13:29 UTC 2024 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel Fold
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.styling versionCode:1000
com.termux.api versionCode:51
com.termux.x11 versionCode:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant