Send password when using scp to copy files from one server to another

The Solution to Send password when using scp to copy files from one server to another is


Just pass with sshpass -p "your password" at the beginning of your scp command

sshpass -p "your password" scp ./abc.txt hostname/abc.txt

~ Answered on 2014-01-16 12:30:00


Most Viewed Questions: