1. 程式人生 > >phpstorm連線sftp報錯:session is down

phpstorm連線sftp報錯:session is down

之前專案的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連線成功了。

相關推薦

phpstorm連線sftpsession is down

之前專案的sftp都是好好的,結果在一次專案上線之後,sftp突然連不上了,用phpstorm連線報錯:session is down 換了flashfxp連線,發現還是連不上。 從上圖可以看到,密碼驗證是通過了的,sftp服務應該也是好的,可是就是連線失敗了。 首先想

連線資料庫1130-Host 'xxx' is not allowed to connect to this MySQL server解決

出現這個問題的同學都很奇怪,為啥用localhost就可以連線上,但是使用本地ip就不行。出現這個問題的原因就是mysql未開啟mysql遠端訪問許可權導致。 這時候我們就用cmd去訪問下你的mysql下面的user表。具體操作如下: 1、連線伺服器: mysql -u root -p

mysql遠端連線 Host * is not allowed to connect to this MySQL server,解決方法

解決此問題有以下2個方法: localhost改成% 1.進入mysql的BIN目錄 注:root為管理員使用者名稱,password為使用者root的密碼: mysql -u root -p password mysql>use mysql; my

Kettle 連線 oracle could not be found, make sure the 'Oracle' driver (jar file) is installed.

報錯如下:Driver class 'oracle.jdbc.driver.OracleDriver' could not be found, make sure the 'Oracle' driver (jar file) is installed.oracle.jdbc.

redhat7.0系統配置lamp環境,Navicat遠端連線mysql2003-can't connect to mysql server on ' ' (10060)解決方案

報錯:2003-can't connect to mysql server on ' ' (10060) 一、分析原因: 防火牆關閉了mysql服務,禁止遠端訪問mysql 二、解決方法: 關閉防火牆: systemctl stop firewalld.service   &nb

secureCRT連線伺服器Unable to authenticate

用secureCRT連線遠端伺服器時報錯: 1 The client has disconnected from the server.Reason: 2 Unable to authenticate using any of the configured authentication methods

解決React NativeNavigator is deprecated and has been removed from this package.

報錯如下:         Navigator is deprecated and has been removed from this package. It can now be installed and imported from `react

Spring AOP表示式Pointcut is not well-formed: expecting 'name pattern' at character position

  問題現象: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoader

Spring AOP表達式Pointcut is not well-formed: expecting 'name pattern' at character position

ret reg tin lips aspect lock alua depend internal   問題現象: java.lang.IllegalStateException: Failed to load ApplicationContext at org.

用Navicat連線mysql2003-Can't connect to MySql server on '10.100.0.109'(10039)

問題描述 在 window 系統上,用 Navicat 連線 Mysql 資料庫,彈出以下提示   問題原因  Mysql 資料庫未啟動   解決方案:啟動 Mysql 資料庫 1、點選桌面左下角執行 cmd,然後回車   2、輸入命令:s

本地連線ORACLEORA-28009: connection as SYS should be as SYSDBA or SYSOPER

1.用jdbc連線: String uName = "sys as sysdba"; String uPwd = "Oracle123"; String driverName= "oracle.jdbc.driver.OracleDriver"; String dbUrl = "

Laravel 5.1 [AppHttpRequestsRequest] is not instantiable

like php 報錯 sts http 路徑 bin requests lin Laravel 5.1 報錯:[App\Http\Requests\Request] is not instantiable 錯誤提示: Whoops, looks like some

gitPull is not possible because you have unmerged files解決方法

git pull 的時候報如下錯誤程式碼: error: Pulling is not possible because you have unmerged files. 嘗試用git stash沒有作用。 Pull is not possible because you have

Spring Security 無法登陸,There is no PasswordEncoder mapped for the id “null”

編寫好繼承了WebSecurityConfigurerAdapter類的WebSecurityConfig類後,我們需要在configure(AuthenticationManagerBuilder auth) 方法中定義認證用於資訊獲取來源以及密碼校驗規則等。(config

Navicat連線MySQL2059

1.解釋原因:據說,mysql8 之前的版本中加密規則是mysql_native_password,而在mysql8之後,加密規則是caching_sha2_password, 解決問題方法有兩種,一種是升級navicat驅動,一種是把mysql使用者登入密碼加密規則還原成mysql_native_passw

TP連線資料庫SQLSTATE[HY000] [2002] No such file or directory

連線資料庫報錯:“SQLSTATE[HY000] [2002] No such file or directory”。     出現這個問題的原因是PDO無法找到mysql.sock或者mysqld.sock。     解決方法1:找到相應的.sock檔案,並設定php.

Linux連線mysqlAccess denied for user ‘root’@‘localhost’(using password: YES)的解決方法以及忘記密碼

最近在騰訊雲上買了一伺服器玩想,然後為服務配置好mysql mysql -uroot -pxxx 要進入發現報錯 Linux連線mysql報錯:Access denied for user ‘root’@‘localhost’(using password: YES)的解決方法 因為第一次遇

已經換成了jdk還是compiler is provided in this environment

錯誤描述:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK 一般解決方法:將編譯環境換成jdk即可,網上搜的也大部分是這種解決方法,但是我試過還是不行,因

mybatisthis is incompatible with sql_mode=only_full_group_by

在本地啟動專案後,發現控制檯報如下錯誤bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #3 of SELECT list is not i

Python3環境下django連線mysqlNo module named 'MySQLdb'

原因是python3中使用了一個新的模組,叫做pymysql,可以直接pip安裝 pip安裝完成後,在django專案的manage.py檔案中新增下面兩行就OK了: from django.cor