Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scp

Status
Not open for further replies.

michelebulloni

Programmer
Mar 4, 2004
13
IT
HI,
it is possible to carry out scp after the execution of a process inserting in way an automatic rifle user-id and the password?
 
Ideally you should use public key authentication, there is no easy way to automate password auth unless you use a tool like expect.

The user can be indicated in the scp string with the user@remotehost and user@localhost identifiers. An identity file can be called as well which is the local private key to be used for authentication.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top