effortsing

描述:之前用的好好的,突然有一天用pycharm运行程序,明明结果正确, 打印不出来结果,看下图

 

解决:

查看File Transfer有好多错误,意思是没有连接上服务器

[2018/12/8 21:05] Automatic upload failed: could not connect to SFTP server at "192.168.0.204". (SSH_MSG_DISCONNECT: 2 Too many authentication failures )
[2018/12/8 21:06] Automatic upload

附图

原来是服务器root密码更改过,但是pycharm没有改掉。所以报错连接不上,奇怪的是测试pycharm连接服务器没有报错

查看原来的密码

修改为正确密码

重启pycharm

必须先执行下面这一句才可以

# -*- coding:UTF-8 -*-
import subprocess
subprocess.call(["ls /home"], shell=True)

 

分类:

技术点:

相关文章:

  • 2022-03-06
  • 2021-08-08
  • 2022-01-04
  • 2021-04-11
  • 2022-12-23
  • 2021-12-13
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-05-02
  • 2021-12-25
  • 2021-09-19
  • 2021-04-11
  • 2021-05-31
相关资源
相似解决方案