Sooner or later you will find out, that you have to modify your key in Putty. From some Linux systems you might even get notified that there are illegal access trials: In that case delete the file ~/.ssh/known_hosts. However you might think about creating keys only once and copy them repeatedly….
1. Copy the following files created earlier, e.g.. using FTP into the download directory:
- dropbear_rsa_host_key
- dropbear_dss_host_key
If you have a Fritz!Box without USB memory you have to store them on an external FTP server. IMPORTANT: the keys must not be accessible unrestricted, the FTP server should require authentication!
2. Now you can add the following code replacing the one before.
Code for Fritz!Box with USB memory
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
HDD='Hitachi-HTS543216L9A300-01' # IMPORTANT: MUST BE ADOPTED! HDD_ABSOLUT='/var/media/ftp/'$HDD PASSWD='myPassword' TEMP=/var/tmp while ! [ -d $HDD_ABSOLUT ] ; do sleep 5; done cd $TEMP cp $HDD_ABSOLUT/ssh/busybox1.9.0 $TEMP/busybox cp $HDD_ABSOLUT/ssh/dropbearmulti $TEMP cp $HDD_ABSOLUT/ssh/dropbear+sftp-server.diff $TEMP cp $HDD_ABSOLUT/ssh/sftp-server $TEMP cp $HDD_ABSOLUT/ssh/dropbear_rsa_host_key $TEMP cp $HDD_ABSOLUT/ssh/dropbear_dss_host_key $TEMP chmod +x busybox chmod +x sftp-server chmod +x dropbearmulti $TEMP/busybox sed -e "/root:/s#^root:[^:]*:#root:$PASSWD:#" -i $TEMP/shadow ln -s $TEMP/dropbearmulti dropbear $TEMP/dropbear -p 22 -r $TEMP/dropbear_rsa_host_key -d $TEMP/dropbear_dss_host_key |
Code for Fritz!Boxes without USB memory
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
DOWNLOADPAGE='https://fritzmod.net/download/7170' PASSWD='myPassword' TEMP=/var/tmp while !(ping -c 1 www.google.de); do sleep 5; done cd $TEMP wget $DOWNLOADPAGE/busybox1.9.0 wget $DOWNLOADPAGE/dropbearmulti wget $DOWNLOADPAGE/dropbear+sftp-server.diff wget $DOWNLOADPAGE/sftp-server wget [deinFTPmitLoginUndPasswort]/dropbear_rsa_host_key wget [deinFTPmitLoginUndPasswort]/dropbear_dss_host_key chmod +x busybox1.9.0 chmod +x sftp-server chmod +x dropbearmulti $TEMP/busybox1.9.0 sed -e "/root:/s#^root:[^:]*:#root:$PASSWD:#" -i $TEMP/shadow ln -s $TEMP/dropbearmulti dropbear $TEMP/dropbear -p 22 -r $TEMP/dropbear_rsa_host_key -d $TEMP/dropbear_dss_host_key |