Copy keys to your home directory, /home/dsl, which gets saved automatically. ($HOME can be substituted for /home/dsl when writing commands in xterm) I created a folder named /home/dsl/ssh_keys where I put them.
Quote | Then copy back on startup to /etc/ssh before starting ssh in bootlocal.sh? |
yes, if that's where your keys are stored (I'm using ssh, which writes the keys to /etc/ssh. So my entry in bootlocal.sh is "cp /home/dsl/ssh_keys/*key* /etc/ssh/" *key* copies any filename with the word "key" in it. You can then place "/etc/init.d/ssh start" in bootlocal.sh, and it will not recopy the keys. |