Page 1 of 1

Remote Commands

Posted: Mon Jan 22, 2018 8:45 am
by fisigkios
Hi,

I am trying to execute the command

Code: Select all

v-change-user-template
via ssh

Code: Select all

ssh user@server 'v-change-user-template admin web template'
and the response I get is

Code: Select all

bash: v-change-user-template: command not found
can you please advice?

Thanks

Re: Remote Commands

Posted: Mon Jan 22, 2018 5:18 pm
by imperio
Hi,
try to reboot your server

Re: Remote Commands

Posted: Thu Feb 15, 2018 9:02 pm
by fisigkios
thanks for the reply.

I have already tried this but still not working..

Re: Remote Commands

Posted: Fri Feb 16, 2018 7:04 am
by skurudo
Full path may be?

Code: Select all

ssh user@server '/usr/local/vesta/bin/v-change-user-template admin web template'

Re: Remote Commands

Posted: Fri Feb 16, 2018 8:33 am
by fisigkios
Thanks again for the quick response!

Resolve the issue

first needs to do

Code: Select all

export VESTA=/usr/local/vesta/
and then the command suggested

Code: Select all

/usr/local/vesta/bin/v-change-user-template admin web template
It has to be under the root user in order to work otherwise i get the error Permission Denied

finally the command should look like this

Code: Select all

ssh user@server 'export VESTA=/usr/local/vesta/ && /usr/local/vesta/bin/v-change-user-template admin web template'
Thanks again!