#Golang Connect to SSH Server & Accept Host automatically

6 messages · Page 1 of 1 (latest)

light spoke
#

My Error im getting when trying to Connect is

Failed to Connect to host | ssh: handshake failed: knownhosts: key is unknown
spring dome
#

so you know this is a bad idea, man in the middle etc etc right ?

#

so figuring out a prompt to give the user is a much much better solution

#

keys are generally better practice if you can use them, harder to break than easy to remember passwords

#

if you have access to the command line there are various ways to add the new known host