phpstorm连接sftp报错:session is down
来源:互联网 发布:淘宝店铺设计 编辑:程序博客网 时间:2024/05/23 18:15
之前项目的sftp都是好好的,结果在一次项目上线之后,sftp突然连不上了,用phpstorm连接报错:session is down
换了flashfxp连接,发现还是连不上。
从上图可以看到,密码验证是通过了的,sftp服务应该也是好的,可是就是连接失败了。
首先想到的是sshd服务器的问题,万能重启方案
service sshd restart
重启之后,还是不行
然后从上面的信息可以看到,用户密码是验证成功了的,说明用户没有问题。
查看日志:
cat /var/log/secure
结果如下:
看最后一条日志:
bad ownership or modes for chroot directory
看来是权限的问题。
到网上搜了一下,原来是我给的目录的权限太高了,我直接给了777权限,给sftp用户访问的目录权限不能都有写权限
修改目录权限:chomod 755 目录名称
再试了一下,sftp连接成功了。
阅读全文
0 0
- phpstorm连接sftp报错:session is down
- SFTP报错:com.jcraft.jsch.JSchException: session is down 上传失败
- phpstorm sftp无法连接服务器
- sftp JSCH连接sftp出现如下报错解决办法
- 解决spring4连接redis集群报错:CLUSTERDOWN The cluster is down
- redis集群报错:clusterdown the cluster is down
- redis集群报错:clusterdown the cluster is down
- Redis报错All sentinels down, cannot determine where is mymaster master is running...
- Phpstorm FTP sftp
- PHPSTORM+sftp远程
- Eclipse 与模拟器无法连接报:The connection to adb is down, and a severe error has occured.异常
- SFTP 报错 pipe closed
- Eclipse开发android报错The connection to adb is down
- 报错:The connection to adb is down, and a severe error has occured.
- adb报错:The connection to adb is down, and a severe&nbs
- Eclipse报错The connection to adb is down, and a severe error has occured
- Solr报错-503-Server is shutting down or failed to initialize
- hawq state 报错: the database is down, but Ambari shows all hawq services as being
- Android提供了短信群发的机制
- 书籍-Java性能调优指南
- python的selenium不管项目模块迁移哪个项目文件目录下,都用这句代码解决
- 创建bootstrap的表格(含日期控件)
- RTSP协议学习笔记
- phpstorm连接sftp报错:session is down
- android实现正方形的ImageView、Layout等(即高度适应宽度或者宽度适应高度)
- IIS ApplicationHost.config错误修复
- Unity 支持 IPV6 (IOS)
- 函数作用域和作用域链
- 《Python核心编程习题》---chapter7
- 从ExtensionLoader看Dubbo插件化
- PendingIntent和AlarmManager--------启动定时任务及详解
- String s=new String("xyz");创建了几个String Object?二者之前的区别是什么?