ssh can't call a binary from a snap, it will only work using the full path.
Let's say I have the hello snap installed in 192.168.122.24. Then:
elopio@ubuntu-xenial:~/mosh$ ssh 192.168.122.24 hello elopio@192.168.122.24's password: bash: hello: command not found elopio@ubuntu-xenial:~/mosh$ ssh 192.168.122.24 /snap/bin/hello elopio@192.168.122.24's password: Hello, world!
ssh can't call a binary from a snap, it will only work using the full path.
Let's say I have the hello snap installed in 192.168.122.24. Then:
elopio@ ubuntu- xenial: ~/mosh$ ssh 192.168.122.24 hello 192.168. 122.24' s password: ubuntu- xenial: ~/mosh$ ssh 192.168.122.24 /snap/bin/hello 192.168. 122.24' s password:
elopio@
bash: hello: command not found
elopio@
elopio@
Hello, world!