Skip to main content
Topic: Missing path when using ssh (Read 340 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Missing path when using ssh

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 [email protected] 'cat /proc/self/mountinfo'
WARNING: ... bash: line 1: cat: command not found
That app needs root.

Both `echo $PATH` and `ssh [email protected] echo $PATH` shows it.