The server rejected SFTP connection, but it listens for FTP connections.

Advertisement

Eric8isles
Joined:
Posts:
6
Location:
Malaysia

The server rejected SFTP connection, but it listens for FTP connections.

I started having this error after I changed my server SSH default port 22.

I already changed the port number in the software WinSCP but still getting this error.

Does anyone have a solution for this?

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
34,115
Location:
Prague, Czechia

Re: The server rejected SFTP connection, but it listens for FTP connections.

Can you connect with any other SFTP/SSH client?

Reply with quote

Eric8isles
Joined:
Posts:
6
Location:
Malaysia

Re: The server rejected SFTP connection, but it listens for FTP connections.

martin wrote:

Can you connect with any other SFTP/SSH client?

I can log in by using FileZilla.

Reply with quote E-mail

Eric8isles
Joined:
Posts:
6
Location:
Malaysia

Re: The server rejected SFTP connection, but it listens for FTP connections.

Eric8isles wrote:

martin wrote:

Can you connect with any other SFTP/SSH client?

I can log in by using FileZilla.

Let me correct myself. I used WinSCP to do backup for my server. And I used an automation script to copy backup file from my server to HDD. I can log into the server by WinSCP but the backup automation is rejected.

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
34,115
Location:
Prague, Czechia

Re: The server rejected SFTP connection, but it listens for FTP connections.

Eric8isles wrote:

Let me correct myself. I used WinSCP to do backup for my server. And I used an automation script to copy backup file from my server to HDD. I can log into the server by WinSCP but the backup automation is rejected.
So please post logs both from the script and GUI.
Though I would guess that the problem is due to a host key verification.
See https://winscp.net/eng/docs/faq_scheduler

Reply with quote

Advertisement

Eric8isles
Joined:
Posts:
6
Location:
Malaysia

Re: The server rejected SFTP connection, but it listens for FTP connections.

martin wrote:

So please post logs both from the script and GUI.
Though I would guess that the problem is due to a host key verification.
See https://winscp.net/eng/docs/faq_scheduler

Script used to sync local script:
option batch abort 
option confirm off 
open %1% -hostkey="%2%"
synchronize local %3% "%4%"
exit

script used to copy backup from server
rem vps10
winscp.com /ini=nul /script=SyncToLocalScript.txt /parameter sftp://xxxLOGINIDxxx:xxxPASSWORDxxx@xxxIPADDRESSxxx "ssh-ed25519 255 xxxSHA-256IDxxx="xxxSOURCExxx" xxxDESTINATIONxxx

stfp.PNG

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
34,115
Location:
Prague, Czechia

Re: The server rejected SFTP connection, but it listens for FTP connections.

Eric8isles wrote:

Anyone? Please help me.
If you want our help, then you need to provide us the information we ask for.
Once again: Please post logs both from the script and GUI.

Reply with quote

Eric8isles
Joined:
Posts:
6
Location:
Malaysia

Re: The server rejected SFTP connection, but it listens for FTP connections.

martin wrote:

Eric8isles wrote:

Anyone? Please help me.
If you want our help, then you need to provide us the information we ask for.
Once again: Please post logs both from the script and GUI.

I posted it. That information still not enough?

Reply with quote E-mail

Advertisement

Advertisement

You can post new topics in this forum