Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
projects:openssh [2019/12/25 16:32]
admin [Control flow]
projects:openssh [2019/12/25 16:33]
admin [On server]
Line 1: Line 1:
 ====== scp ====== ====== scp ======
-===== Control flow ===== + 
-==== scp run on client (copy remote to local case) ====+==== 1) scp run on client (copy remote to local case) ====
     * construct ''​scp''​ command to be executed on the server via ssh. append ''​-v -r -p -d''​ flags as appropriate. Resulting command stored in ''​cmd''​ variable     * construct ''​scp''​ command to be executed on the server via ssh. append ''​-v -r -p -d''​ flags as appropriate. Resulting command stored in ''​cmd''​ variable
     * call ''​toremote()''​ if destination is remote; ''​tolocal()''​ if destination is local (handles '​remote to local' and 'local to local' cases)     * call ''​toremote()''​ if destination is remote; ''​tolocal()''​ if destination is local (handles '​remote to local' and 'local to local' cases)
Line 9: Line 9:
     * ''​tolocal()->​sink()''​ receives file from child via ''​remin''​ & ''​remout''​ and stores it to the local destination     * ''​tolocal()->​sink()''​ receives file from child via ''​remin''​ & ''​remout''​ and stores it to the local destination
     * finaly wait for child to finish, check for errors, close ''​remin''​ & ''​remout''​ and exit     * finaly wait for child to finish, check for errors, close ''​remin''​ & ''​remout''​ and exit
-==== On server ====+==== 3) server ​accepts ssh connection from client ​====
     * for ''​-t''​ or ''​-f''​ private flags: ''​remin = stdin'';​ ''​remout = stdout''​     * for ''​-t''​ or ''​-f''​ private flags: ''​remin = stdin'';​ ''​remout = stdout''​
projects/openssh.txt · Last modified: 2019/12/25 16:34 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0