Solved

Linux, scp, sshpass, and ssh-keygen

Posted on 2013-12-19
2
513 Views
Last Modified: 2013-12-19
Apparently scp can work with ssh-keygen

Is there any way that scp can work with sshpass ?

Thanks
0
Comment
Question by:Los Angeles1
2 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 250 total points
ID: 39730265
scp should work with sshpass just as ssh does, no difference.

sshpass -p 'xxxx' scp ... ... ...
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 39730277
try something like

sshpass -p 'mypass' scp myfile username@myhost:/mydir
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question