1834150 Members
2129 Online
110064 Solutions
New Discussion

scp & password

 
Donald Thaler
Super Advisor

scp & password

can a password be placed in the scp command, and if so where would it go inn this command:
scp apollo:/u06/rman_backup/* .

------------------------------------------------------------------------------------------------------------
P.S. This thread has been moved from Hp-UX> system administration to languages and scripting - Forum Moderator
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: scp & password

Which is your "the scp command"?

ssh -V

man scp

Most ssh/scp/sftp clients were designed with
some basic security in mind, so they tend to
accept passwords interactively, but don't
make it particularly easy to use a password
which is stored in a script.

Why shun the usual public-key authorization
scheme for ssh/sftp/scp?
Michal Kapalka (mikap)
Honored Contributor

Re: scp & password

hi,

in this case i would recomend you to use password less auth for this.

how to do this ( example ) :

http://www.linuxjournal.com/article/8600

mikap
Berd
Trusted Contributor

Re: scp & password

Donald,

See link, https://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1125086

This will explain how to setup ssh for paswordless connectivity.

Regards,
Berd
Steven Schweda
Honored Contributor

Re: scp & password

> how to do this ( example ) : [...]

> See link, [...]

Or do a Forum (or Web) search for keywords
like, say:

password ssh
or:
passwordless ssh

to find some of the dozens (or hundreds) of
other previous discussions of these kinds of
arrangements. (Some of which even include
output from "uname -a" and/or "ssh -V", so
that the reader might get some clue as to the
systems and software being used.)