how to execute a scp command with the user name and password in one line

command, scp, terminal

Solution

Thanks for your feed back got it to work I used the sshpass tool.

`sshpass -p 'password' scp user1@xxx.xxx.x.5:sys_config /var/www/dev/`

Problem

I would like to put the password in on one line when running scp in my terminal `scp user1@xxx.xxx.x.5:sys_config /var/www/dev/`

Original source

Related problems