• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Scp & Chmod & chown in same command ?

stevefigueras

Basic Pleskian
Hello i need to upload some file from a local server to distant one so i use :
Connect with Putty on local server
scp /************************.jpg [email protected]://var/www/vhosts/******************.jpg

Connect with Putty on distant server
chmod -R 777 /var/www/vhosts/**********************************.jpg

chown -R sport16 /var/www/vhosts/*******************************.jpg


Question

Can i make these threee operation faster in same command directly during upload from the local server without connecting with the distant server ?
 
Back
Top