Hi,
I have a script in /etc/init.d that runs automatically when the PC starts.
This script wants to transfer a file that is on the server on my local PC, through the scp command.
I would like the script not to ask for the password when it is executed.
I saw on this forum that for the same problem it was suggested to create the public key and to copy it to the server.
I think I did correctly. but the script executed manually by the terminal, keeps asking for the password.
This is the command contained in the script:
Code:
scp -r danilo@192.168.1.24: / home / danilo / *. sql / home / danilo / backupsql /.
the key that I have generated in / home / danilo / is called
I copied miakey.pub on my server in / home / danilo
How can I change this command to run it SCP without password prompt ?
Thanks for the attention
danilo