Host key stopped working

Advertisement

Javier_S
Guest

Host key stopped working

Hello Everyone

I'm having a very strange problem, a scripted connection using hostkey parameter stopped working, the last time I tried successfully was six days ago, today it won't connect anymore, the log report that the host key does not match the configured key, but it's the same key.

Please see attached log from 08/04/2020 and 14/04/2020 same host (connecting from GUI report the same key on the script). Any ideas what might cause this?

Thank You!
  • script_sftp.txt (433 Bytes, Private file)
Description: The script
  • 14-04-2020.txt (4.72 KB, Private file)
Description: Log from 14-04-2020
  • 08-04-2020.txt (30.18 KB, Private file)
Description: Log from 08-04-2020

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,040
Location:
Prague, Czechia

Re: Host key stopped working

You have added a space in front of the host key. You can see in the old log that the space was not there before.

open sftp://... -hostkey=" ssh-rsa 2048 ..."

Reply with quote

Javier_S
Guest

Re: Host key stopped working

martin wrote:

You have added a space in front of the host key. You can see in the old log that the space was not there before.

open sftp://... -hostkey=" ssh-rsa 2048 ..."

Thank You!! Turns out all the keys are stored in the DB with a space in front of the "ssh-rsa"
I thought that only the part after the 2048 counts for the key. I'll fix them all. Thank You Martin!
best regards
Javier

Reply with quote

Advertisement

You can post new topics in this forum