Artix Linux Forum

Artix Linux => Other Architectures => ARMtix => Topic started by: kiblaster on 06 January 2024, 19:57:07

Title: Missing path when using ssh
Post by: kiblaster on 06 January 2024, 19:57:07
I added to /etc/environment:
Code: [Select]
PATH=$PATH:/usr/bin

Otherwise when using the device the path is fine but when trying to connect with ssh-copy-id:
Code: [Select]
bash: line 1: exec: sh: not found

When using btrbk from ssh:
Code: [Select]
btrbk run -n
WARNING: Skipping subvolume "10.42.0.1:/": Failed to fetch subvolume detail
WARNING: ... Command execution failed (exitcode=127)
WARNING: ... sh: ssh root@10.42.0.1 'cat /proc/self/mountinfo'
WARNING: ... bash: line 1: cat: command not found
That app needs root.

Both `echo $PATH` and `ssh user@10.42.0.1 echo $PATH` shows it.