sftp-state: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/sftp-state - from package: mysecureshell

You may install the required package with command apt-get install {package}
Error in other languages:
sftp-state: bevel nie gevind nie
sftp-state: comandă negăsită
sftp-state: comando não encontrado
sftp-state: commande introuvable
sftp-state: command not found
sftp-state: käsku ei ole
sftp-state: không tìm thấy lệnh
sftp-state: komanda nerasta
sftp-state: Kommando nicht gefunden.
sftp-state: kommandot finns inte
sftp-state: komut yok
sftp-state: nie znaleziono polecenia
sftp-state: níor aimsíodh an t-ordú
sftp-state: no se encontró la orden
sftp-state: no s'ha trobat l'ordre
sftp-state: opdracht niet gevonden
sftp-state: parancs nem található
sftp-state: perintah tidak ditemukan
sftp-state: príkaz nenájdený
sftp-state: příkaz nenalezen
sftp-state: команда не найдена
sftp-state: командата не е открита
sftp-state: 命令找不到
sftp-state: コマンドが見つかりません