ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
I've got problem to connect to the SFTP server of my client.

They've got two servers, I've got no problem with the first one, but the seccond one no answer.

The script is very simple:
FTP Script
  1. # Connexion au serveur FTP
  2.  
  3. $result = OPENHOST("XXX.XXX.XXX.001", "login", "password")
  4.  
  5. IF($result!="OK")
  6.     $mes_erreur="ERROR : unable to connect to FTP server."
  7.     PRINT("Connection to server XXX.XXX.XXX.001 succeeded.")
  8.     CLOSEHOST
  9.  
  10. $result = OPENHOST("XXX.XXX.XXX.002", "login", "password")
  11.  
  12. IF($result!="OK")
  13.     $mes_erreur="ERROR : unable to connect to FTP server."
  14.     PRINT("Connection to server XXX.XXX.XXX.001 succeeded.")
  15.     CLOSEHOST
The result is the following:
===========================================================================
OUTPUTDETAIL(DEBUG)
Showing command calls, command messages, errors, server responses and debug information
SETPROTOCOL(SFTP)
Setting protocol to SFTP
Setting TCP port to 22.
OPENHOST("XXX.XXX.XXX.001","login","********")
Connecting to XXX.XXX.XXX.001
••••• OPENHOST Error #0
••••• Negotiation failed. Disconnected by the server ('Ssh disconnect host not allowed to connect').


OPENHOST("XXX.XXX.XXX.002","login","********")
Connecting to XXX.XXX.XXX.002
[ ScriptFTP] SSH_FXP_INIT (4)
[Server ] SSH_FXP_VERSION (3, 0 extensions)
[ ScriptFTP] SSH_FXP_REALPATH (1, '.')
[Server ] SSH_FXP_NAME (1, 1 item)

Connected

Connection to server XXX.XXX.XXX.002 succeeded.
CLOSEHOST()
Disconnected

Finished
===========================================================================

I've not even got the error message following the connection.

I can connect to both servers with Filezilla with no problem.

The client send me the following message they found in their log:
SECS127E 09.03.2017 15:43:48 Server(339664) Selected private key XSR-PRV-KEY-OHI351 has an algorithm identifier (ssh-rsa) that is not compatible with the one requested (ssh-dss), check configuration.

They say that I don't send the correct public key. I don't even know what's that, I have very few knowledge about FTP and SFTP.

Anyone have an idea of what happen ? Does ScriptFTP record the key anywhere, and where ?

Thanks in advance.
Nicolas DECOUFLET