dimanche 19 avril 2015

How to a files send to Win7 from Linux by using freeSSHd server and ssd command

I want to send a files to Win7 from Linux by use a ssh command of Linux.


Win7 have installed freeSSHd server And Cygwin that to using Bash shell.


In that case, send files to Linux from Linux.


below command was very well working.


tar cvzf - /home | ssh id@211.xxx.xxx.10x "cd /test ; cat > home.tar.gz"


But, Linux to Win7. below command was not working


(By a cmd.exe)


tar cvzf - /home | ssh id@211.xxx.xxx.10x "cmd /c type > home.tar.gz"


or (By a bash on cygwin)


tar cvzf - /home | ssh id@211.xxx.xxx.10x "cd /test ; cat > home.tar.gz"


Why not a working?


Please answer to me.


Thank you.


Aucun commentaire:

Enregistrer un commentaire