LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I upload a file and edit one? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-upload-a-file-and-edit-one-73831/)

KyleLC23 07-18-2003 09:18 AM

How do I upload a file and edit one?
 
Hello,

I am connecting to a remote linux mahine using ssh. I am in the /var/www/html dir where I want to upload a html file. What command do I use to uploade a file from my local machine to the remote machine? I would usually use ftp, but my programmer says ftp is not up and running. Please help.

Also, what command can I use to edit a spreadsheet? Thanks, Kyle

Mathieu 07-18-2003 09:34 AM

You can use sftp, it works just like ftp except it uses a SSH tunnel.

Or scp which copies files from one network location to another using a SSH tunnel as well.

KyleLC23 07-18-2003 10:14 AM

I am still alittle cofused. Say I have a HTML document names numbers2.html in my C:/ folder on my desktop. Its exact path is c:/numbers2.html

I open putty and login using ssh. Then I go to the /var/www/html where I want to put the numbers2.html file. How do I put it there? Can anyone give me the exact commands? Thanks, Kyle

acid_kewpie 07-18-2003 10:25 AM

you need to use an ftp client, a plain ssh connection is no good. when you're logged it you'd say

cd /var/www/html
put c:\numbers.html

Mathieu 07-18-2003 10:36 AM

Oh...

You want to upload files from a Windows system to a Linux server.
Well then...

Then acid_kewpie is right, you will need to use FTP.

acid_kewpie 07-18-2003 10:39 AM

well, so are you...


All times are GMT -5. The time now is 02:43 AM.