From: Hari S (catchhs_at_yahoo.com)
Date: Tue, 7 Dec 2004 15:49:55 -0800 (PST) To: firstname.lastname@example.org
I've some doubts regarding the scp
protocol/implementation, which I thought I should get
clarified. I'm trying to develop a scp client library
using the openssh, with the following requirements /
- client side library for scp
- no password invokation (API for providing password
to the lib)
- no control over the scp/ssh server
- localhost to remotehost functionality (at the
- openssh doesnt provide a library/API for scp.
I though I should make sure what I understand from the
scp.c (I couldnt find any good docs for scp :-)) is
true. For copy from localhost tpo remotehost,
- "scp file user@server:" at the client
- client tries to establish "ssh" with the server
- local "ssh" client asks the user for passwd
- "ssh" session is established
- "scp -t file user@server" is executed at the server
- both the scps' cooperate together to transfer the
file (using the same ssh session)
a. Can I eliminate the password invocation in my
library? (I believe the local ssh client asks for the
passwd. So, do I need any tweaks in the "ssh" client
code as well)?
b. I wouldnt have any control over the "scp" program
running at the server end. Will this have any effect n
c. Are there any other things I should know before
staring off with the lib?
Thanks for any help,
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around