一,登入服务器建docker
nvidia-docker run -it -v ~/workspace/:/workspace -w /workspace/ --name=fzh_tf --shm-size 8G -p 1111:22 -p 1112:6006 -p 1113:8888 tensorflow/tensorflow:1.4.0-devel-gpu bash
二,开ssh服务
apt-get update
apt-get install openssh-server
apt-get install vim
vim /etc/ssh/sshd_config
找到PermitRootLogin prohibit-password一行,改为PermitRootLogin yes
service ssh restart
https://jingyan.baidu.com/article/e9fb46e15bfd4f7521f7660f.html
修改密码passwd
三,设置pycharm
输入地址
map
更换服务器
四.ssh连接多次报错
mv ~/.ssh/known_hosts ~/.ssh/known_hosts_BAK 即可