How to pass password using scp in commandline

SCP <filename> <user>@<Toserveraddress>:<path>

Here i want to use password also , how can i use ????

Recommended Answers

All 4 Replies


s stands for 'secure'; using clear passwords in a script is not secure.
use public key authentication.

Thnaks its working

How to use, could you please provide an example

If you do some Google, you should see many links explain how to. For example, this and this may be something you can start with...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.