1.首先要在ubuntu开启SSH服务,否则会连接不成功
(转)http://blog.csdn.net/JustinSeraph/article/details/70170483
2.然后在pycharm上设置
(转)https://www.cnblogs.com/styier/p/5657741.html