Joined: 07 Feb 2007
|Posted: Fri Oct 08, 2010 13:28 Post subject: trusted hosts file
I'm configuring my WZR-HP-G300NH to do some operations at startup. So I wrote some scripts in the web GUI (DD-WRT v24SP2-EU-US), and they perfectly work.
Now I'm trying to perform some operations with SCP. So I have found this link:
and then added to my script a row in this way,
DROPBEAR_PASSWORD='my password' ssh user@hostname
as explained in the tutorial. It works too, but only if user@hostname is in the known_hosts file.
Is there a clean way to add it from the web GUI?
I have tried to put the following string in "Service > Secure shell > Authorized key", from the web GUI:
ssh-rsa AAAAB3NzaC1yc2E ... 4Frw9K7CfCigdAQ== email@example.com
and then in the shell tried to connect via ssh, but the result is the following:
root@DD-WRT:~# ssh firstname.lastname@example.org
Host '10.0.0.10' is not in the trusted hosts file.
(fingerprint md5 de:39:5d:17:aa:0a:8c:47:36:28:6e:e1:25:fe:74:01)
Do you want to continue connecting? (y/n)
Have I missed something?
Thank you very much.