Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AdamT's avatar
Level 9

Expected SSH_FXP_ATTRS or SSH_FXP_STATUS (server issue?)

Hi all!

I'm using the SFTP driver in Laravel to fetch files from a remote SFTP server. I have installed the required packages (league/flysystem-sftp) and everything works fine (sometimes).

The issue I am having is intermittent and usually results in the following error:

Expected SSH_FXP_ATTRS or SSH_FXP_STATUS

I think this implies that my application did not receive a response. However occasionally (maybe 20% of the time) the connection will succeed.

I can login to SSH and SFTP (via Filezilla) successfully every time.

I have noticed that their are a lot of attempted SSH logins in the auth.log file, (I'm in the process of restricting SSH to key authentication only).

Since the server I am connecting to is quite low-spec (Digital Ocean's $5 droplet, Ubuntu 20.04).

I am at a bit of a loss as to could be causing this intermittent behavior, has anyone encountered anything like this?

0 likes
1 reply
binggle's avatar

Hi. I have same trouble.

yes sometimes works, sometimes no.

Expected SSH_FXP_ATTRS or SSH_FXP_STATUS

But I just "guess" it is from network trouble, something like unstable connection. it is just guessing .

Does somebody knows this case?

Please or to participate in this conversation.