Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

Remote Commands Topic is solved

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
fisigkios
Posts: 5
Joined: Thu Dec 07, 2017 8:36 pm

Os: Debian 7x
Web: nginx + php-fpm
Remote Commands
  • Quote

Post by fisigkios » Mon Jan 22, 2018 8:45 am

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
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Remote Commands
  • Quote

Post by imperio » Mon Jan 22, 2018 5:18 pm

Hi,
try to reboot your server
Top

fisigkios
Posts: 5
Joined: Thu Dec 07, 2017 8:36 pm

Os: Debian 7x
Web: nginx + php-fpm
Re: Remote Commands
  • Quote

Post by fisigkios » Thu Feb 15, 2018 9:02 pm

thanks for the reply.

I have already tried this but still not working..
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Remote Commands
  • Quote

Post by skurudo » Fri Feb 16, 2018 7:04 am

Full path may be?

Code: Select all

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

fisigkios
Posts: 5
Joined: Thu Dec 07, 2017 8:36 pm

Os: Debian 7x
Web: nginx + php-fpm
Re: Remote Commands
  • Quote

Post by fisigkios » Fri Feb 16, 2018 8:33 am

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!
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password