Linux, scp, sshpass, and ssh-keygen

Apparently scp can work with ssh-keygen

Is there any way that scp can work with sshpass ?

Thanks
Los Angeles1Asked:
Who is Participating?
 
omarfaridConnect With a Mentor Commented:
try something like

sshpass -p 'mypass' scp myfile username@myhost:/mydir
0
 
woolmilkporcConnect With a Mentor Commented:
scp should work with sshpass just as ssh does, no difference.

sshpass -p 'xxxx' scp ... ... ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.