IDEA connects SSH and uploads project files to the specified remote server folder

1. IDEA connects to SSH

Make sure that your password is entered correctly. Fortunately, I saved the password of my remote server. Originally, I always thought that I entered the correct password, which resulted in an error Auth fail.

Click ok to connect,

2. Transfer the project file to the designated folder of the remote server

name any name

1 is the folder path of your local project

2 is the path to the price-ask folder of the server you uploaded to, you can also write tomcat webapps directly, I am here just for testing

Then upload, you can choose a file to upload, or you can choose the entire project to upload

Choose a file to upload

Select the entire project folder to upload 

But I found that after uploading the entire project, the jar managed by maven was not uploaded, so I put this issue aside for now

Because I chose the project folder, not the compiled file, so I uploaded all java files

But in this case, you probably should understand the meaning, xshell and xftp are not used anymore, idea is integrated

 

If you want to deploy the class file directly to the remote server, you only need to change the local path to the compiled folder of your project, Road King, and this folder contains your jar file, OK

Guess you like

Origin blog.csdn.net/ClearLoveQ/article/details/101302203
Recommended