6
Contributors
7
Replies
13
Views
4 Years
Discussion Span
Last Post by Pkumar001
0

What operating system are you using? If Linux (or Cygwin on Windows) you can use netcat (the nc command) to send/receive data. If just reading, then you can use wget.

1

How to pass password using scp in commandline

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

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

0

Not really possible with BASH scripting. You would need something like expect or Python with pyexpect.
You could, however, use ssh keys which would not require a password, just an rsa key. Then you can use scp -i /path/to/key <Source> <Target>

0

Ya , i didn't used expect or Pythone but ssh key used for me .. Thanks its working fine .

In this path I need mention the files using 4 digit numeric , pls help me in this
ex: bangalore_date_4467 , here every day last digit will get vary . soo pls hep me in this .

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.