My professor wants us to email him source files, but he wants us to edit over ssh using vi. How do I transfer a file over ssh from one machine to another?
To transfer a file over ssh you should use the
Basic usage is :
It will copy over SSH the file
More concrete example :
Where it is assumed your local file is
You will end with the file copied under
If you are not working under Linux or any Unix-based system locally (ie. you're on Windows typically), a tool like WinSCP will enable you to transfer the file over SSH with help of a graphical interface.