I would like to put the password in on one line when running scp in my terminal
scp [email protected]:sys_config /var/www/dev/
bg -> Send job to background. Show activity on this post. You can use jobs command to check the processes. For example jobs -l will list all running processes along with the process id.
Combining the use of SSHPASS and SSH to access a remote server, router, or firewall gets rid of unnecessary two-liner commands that lead to an additional password entry prompt. It makes your remote access to other Linux environments faster and efficient.
Thanks for your feed back got it to work I used the sshpass tool.
sshpass -p 'password' scp [email protected]:sys_config /var/www/dev/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With