The company computer is win, so before the remote control server can not use their own laptop ubuntu comes with the terminal.
Later in the Almighty reminds group of friends, IDEA itself comes with a remote function, and explore a bit, using IDEA connect to the server and can upload files.
This also can save to install other software, as to the function, I have not finished groping, at least the basic operation is possible with the.
1.IDEA configuration server
In Figure Click: Tools - Deployment - Configuration
Then add the type of SFTP, you want to try other Try your own
Then fill in the server name
Finally, fill in the server of a variety of information, test connection can be a success
2. Using a remote connection
Tools--Start SSH session
Will pop up after clicking the server you've added, you can click on the connection.
If you do not pre-configured server directly Satrt SSH session, then you can connect only need to enter the server information on it.
But the disadvantage of this approach is that every time you input a lot of trouble, so Once configured you can always use.
3. solve the garbage
If you have a garbage problem, then try the following method
The encoded into UTF-8, no problem.
4. Upload file
Upload files need to configure, for example, now I want to D: \ upload files uploaded to the server / root
Or, we need to set a folder, this folder is designed to store files to upload, I here set to D: \ upload
I copy the files to D: \ upload next, and then configure the IDEA, select the Mappings
The first is a local upload folder, and the second is that you want to upload destination folder
After configuration is complete, upload.
Remote Host is the left that comes out of this
In short, when you find a server's root folder, then right, there is a upload here, click away.