[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use the scp feature?


Hi Yohan,

Sorry for the time to answer.
The current scp subsystem is currently client-only.
It could be possible to adapt it for servers (quite easily, since roles
are almost symmetric). The only difficulty I can see is parsing the scp
command (shell) being sent by the other side.

We have no plan to do that at the moment, but of course quality
contributions will be accepted and merged in.

kr,

Aris

Le 28/09/11 17:34, Yohan PAINCHAUD a écrit :
> Hello,
> 
> We’re facing a problem using the scp feature.
> 
> We’d want to implement a file transfer with scp. Basically, we try to
> use the example provided in your site, and it seems to not work.
> 
> Here are the operations we make:
> 
> - open a new ssh session with ssh_new
> 
> - manage the ssh authentication with ssh_message_auth_userAnd
> ssh_message_auth_password
> 
> - Then our scp server receive the SSH_REQUEST_CHANNEL_OPEN from the
> client (SSH protocol)
> 
> - open the channel with ssh_message_channel_request_open_reply_accept
> 
> - then we handle the scp command for copy using the example from your site.
> 
>  
> 
> It seems that the scp_new function opens a new channel, that is not the
> same opened with ssh client, and this does not work.
> 
> Is there any problem with our solution?
> 
> How does your scp feature work?
> 
>  
> 
> Thanks
> 
> Yohan
> 
> 
> 
> 
> Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur.
> 
> The information contained in this e-mail and any attachments are intended solely for the addressees. If you have received this email in error, please contact the sender and delete the email from your system.

Follow-Ups:
Re: How to use the scp feature?Andreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org