How to upload automated install script to a brand new VPS?

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Virtualmin version Not Installed yet

Sorry for this question. This is my first time doing this.

Using the Windows 11 terminal app, the SCP command says the virtualmin-install.sh was uploaded but after doing an ls command, the file is not there. How can the virtualmin-install.sh be uploaded to a brand new VPS?

Using SCP is fine, not sure why you are not seeing it, maybe in a different directory then you think?

You can always ssh in to server, go to directory where you want the file to be and use:
wget https://download.virtualmin.com/virtualmin-install.sh

or curl if you prefer:
curl -O https://download.virtualmin.com/virtualmin-install.sh

if wget or curl is not installed on server just us apt install command

Happy Friday CTS!

My custom virtualmin-install.sh was actually uploaded to the new VPS.
But the file was not found due to my own cockpit error.

Because the file was placed in the root (/) directory instead of /root home directory It was hard to find, I panicked.

Basic Syntax

scp /path/to/local/file username@vps_ip:/path/to/remote/directory

My command

scp /home/download/virtualmin-install.sh root@vps_ip:/

Thank you for your feedback.
I really appreciate it.
Have a good weekend, CTS.