📌  相关文章
📜  将文件从 vscode 复制到远程服务器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:56.704000             🧑  作者: Mango

代码示例1
# copy file test.zip from local directory to remote server in vscode(/root/siteFolder is that directory where you want save file)
scp .\test.zip root@IpAddress:/root/siteFolder
# Now ssh to your remote server using ssh root@IpAdress and enter your password for root user
ssh root@IpAdress
# Go to your directory where you have to copy file, first unzip file if that file is zip file
unzip test.zip
# Copy all files from test.zip file to current directory
cp -R test/* .