Tools->Deployment->Configuration…
1> Connection标签下
Type:SFTP
SSH configuration:
host:集群客户端的ip
port:22
User name:集群客户端的用户名
Password:集群客户端的密码
Root path:/home/用户名
Encoding for client-server communication:UTF-8
2> Mappings标签下
Local path:定位到idea当前工程下的target目录
Deployment path:/
Web path:/
然后就可以打包jar包之后,右键jar包,Deployment->UpLoad to xxx