Copy file from local computer to remote computer
Kerim Teboulbi
Switzernet
2008-12-12
This document explains how to copy file from Windows with cygwin. It explains how to reset old ssh/scp connection saved fir a specific remote IP address.
Create a folder in the desktop and save this file into it. Open cygwin, and go to the folder
Write cd, and then drag and drop the folder to cygwin.
Write the command scp with source, destination (can we distant or local) exemple:
$ scp local/path/file user@host:/complete/remote/path
If you see this warning, it mean that your computer have already connected to another computer with the same IP. You have to delete a line from /home/User/.ssh/known_hosts. You can edit the file with vi
$ vi /home/User/.ssh/known_hosts
For searching the good line just write /x.x.x.x (where x.x.x.x is an IP address).
No you're ready to delete with dd (just press 2 times on d) to delete all the line. Now you're just have to quit.
Press escape and then write: ":x"
SCP:
http://switzernet.com/public/081212-use-scp (this document)
http://unappel.ch/public/081212-use-scp (this document)
Asterisk Project Main Page
http://switzernet.com/public/081216-asterisk-main
http://unappel.ch/public/081216-asterisk-main
Asterisk product description:
http://switzernet.com/public/081216-asterisk-description
http://unappel.ch/public/081216-asterisk-description
All process for asterisk product:
http://switzernet.com/company/081215-doc-install-asterisk
http://unappel.ch/company/081215-doc-install-asterisk
Install debian:
http://switzernet.com/public/081201-install-debian-alix1d/
http://unappel.ch/public/081201-install-debian-alix1d/
Install asterisk + freepbx:
http://switzernet.com/public/081210-install-freepbx/
http://unappel.ch/public/081210-install-freepbx/
Install OpenVPN client:
http://switzernet.com/public/081215-openvpn-client
http://unappel.ch/public/081215-openvpn-client
Install OpenVPN server:
http://switzernet.com/public/081215-openvpn-server
http://unappel.ch/public/081215-openvpn-server
Manage Asterisk through VPN:
http://switzernet.com/company/081216-manage-asterisk-openvpn
http://unappel.ch/company/081216-manage-asterisk-openvpn
Debian OS configuration files (company):
http://switzernet.com/company/081212-install-debian-alix1d-secure
VPN configuration files (company):
http://switzernet.com/company/081216-openvpn-secure
* * *
Copyright © 2008 Switzernet