Idira Remote Access: command not found when entering the command remote-access-cli

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Remote Access Articles
2 min read
L2 Linker
No ratings

Question

ka3Ht0000000k00IAA__eid=ka3Ht0000000k00&feoid=00N2J000009R3kr&refid=0EM2J000002kZNS.png
Getting the above "command not found ... " when entering the command to login connector cli "remote-access-cli", confirmed connector has been installed on the machine.

Answer

This could be related to the PATH value:

Command is located here: /var/lib/snapd/snap/bin/remote-access-cli OR soft link: /snap/bin/remote-access-cli
[root@localhost ~]# whereis remote-access-cli
remote-access-cli: /var/lib/snapd/snap/bin/remote-access-cli
[root@localhost /]# cd /snap/bin/
[root@localhost bin]# ll
total 0
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.env -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.evil -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.sh -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jun 6 15:31 remote-access-cli -> /usr/bin/snap

$PATH shows where to find command for execute. If confirmed snap is installed, edit $PATH variable (PATH=$PATH:newPath1:newPAth2 ; export PATH)

# echo $PATH
>> Suppose you should see the below for example:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin

>> check if your value of $PATH shows missing the above snap one

you can change the PATH into the value by the command:
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin   or  PATH=$PATH;/var/lib/snapd/snap/bin
#export PATH


~/.bash_profile: This is the file that run everytime when user use bash shell
  • [root@localhost ~]# cat .bash_profile
    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi

    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin

    export PATH
Rate this article:
  • 2055 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 11:58 AM
Updated by: