disable hostkey check for dynamic/changing ip (ssh)
Posted: 18 Apr 2017 06:48
Hello!
I try to connect via ssh to a computer with a dynamic IP.
The Ip is extracted from a logfile from another computer,and then stored in a global_variable.
I can connect to the remote site using the variable,yet no command is executed,as the hostkey is rejected (from automatic).
I get the error message : "action not executed successfully : reject Hostkey: xxx.xxx.xxx.xxx"
If I manually enter the ip(read out from the variable) ,then do a update/test connection,everything works fine ... but thats pointless,as I basically have to enter the ip manually,then update the hostkey everytime the ip changes
Is there a way around/to automate this ?
I try to connect via ssh to a computer with a dynamic IP.
The Ip is extracted from a logfile from another computer,and then stored in a global_variable.
I can connect to the remote site using the variable,yet no command is executed,as the hostkey is rejected (from automatic).
I get the error message : "action not executed successfully : reject Hostkey: xxx.xxx.xxx.xxx"
If I manually enter the ip(read out from the variable) ,then do a update/test connection,everything works fine ... but thats pointless,as I basically have to enter the ip manually,then update the hostkey everytime the ip changes
Is there a way around/to automate this ?