Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahmadshobirin/90fab89050d67d63f1e4dfbfd221d104 to your computer and use it in GitHub Desktop.
Save ahmadshobirin/90fab89050d67d63f1e4dfbfd221d104 to your computer and use it in GitHub Desktop.
Upload All Files In Folder Local To VPN Server, UBUNTU
#Use SCP, make sure you have installed it or installed it now
`sudo apt install openssh-client` or `sudo apt-get install openssh-client`
1. Open Terminal
2. command: `scp -r localpath/* user@ip:/path/to/upload`
Note:
`-r` meaning a recursive get all files and sub folder
`localpath` is a local folder on your computer, and user `/*` get only files, subfolders
`user` your user vpn
`ip` yout IP Address vpn
`:/path/to/upload` a destination upload file
input password vpn appear after this command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment