Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of uploading Files and folders to linux Server by SSH

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There are a lot of linux servers now. Can't you pass the file? Don't worry. Here's how to do it:

Upload files to linux server

First, change from your local directory to the directory where you want to upload the file, and then:

Scp file name server user name @ server ip: directory

Example:

Scp index.html root@58.87.124.110:/home/service-tomcat/webapps/

Upload the folder to the linux server

Upload the same file only with-r in front of the file name

Example:

Scp static/ root@58.87.124.110:/home/service-tomcat/webapps/

It should be noted that:

1. Add-r before the file to be uploaded, otherwise an error will be reported

Static: not a regular file-r: No such file or directory

2. If you want to upload a file, you'd better add /

Summary

The above is the method of uploading SSH files and folders to the linux server introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report