Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux, scp, sshpass, and ssh-keygen

Posted on 2013-12-19
2
Medium Priority
?
582 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 1000 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 1000 total points
ID: 39730277
try something like

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 19 hours left to enroll

916 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