Uploading File From Desktop To Server Using Command Line?
matthewamzn
8:24 pm on Sep 2, 2005 (gmt 0)
I'm not sure if I'm asking this right. I want to upload something from my desktop computer to my server, using Putty. I can log into the server using my root username and password. But I don't know what the commands are to upload a file, that is on my desktop to my server. Is there a good resource for this?
matthewamzn
6:17 am on Sep 3, 2005 (gmt 0)
I can log into the directory where I want to place the file, using this command: cd /home/httpd/vhosts/examplesite.com/
But I can't put something to the server from my desktop. The command below gives an error message: put \Documents and Settings\Matt\Desktop\.my.cnf
produces this message: -bash: put: command not found
kaled
9:12 am on Sep 3, 2005 (gmt 0)
I use ftp.exe in Windows occaisionally. I use the following commands.
open (to connect) ascii (enter ascii mode) cd (change directory) dir (get directory list) send (upload the program) and quit. I think help also works.
Kaled.
physics
4:23 pm on Sep 5, 2005 (gmt 0)
Hi. Generally Putty is used to log in and edit files on the server remotely using things things like emacs and pine and vi and to change permissions with chmod and stuff. To upload files from your windows machine you should use something like WinSCP or you can install Cygwin and use scp or rsync. Or you can use ftp.exe ...
trillianjedi
4:25 pm on Sep 5, 2005 (gmt 0)
You can also use IE as a basic FTP client - that at least will let you drag and drop.
TJ
cws3di
4:37 pm on Sep 5, 2005 (gmt 0)
There are a lot of great resources (especially at university websites) with tutorials for ftp products, Putty included.
Do a search for tutorial on that product, and you should find plenty of info available, many even have screenshots and step by step instructions.
py9jmas
4:47 pm on Sep 5, 2005 (gmt 0)
You can also get pscp from the people who write Putty. If you want to upload stuff from the Windows command line (in a batch file or whatever) it's probably a good bet. Putty's help file is a good reference for command line arguments.