LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2003, 09:18 AM   #1
KyleLC23
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
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
 
Old 07-18-2003, 09:34 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 07-18-2003, 10:14 AM   #3
KyleLC23
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 07-18-2003, 10:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 07-18-2003, 10:36 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 07-18-2003, 10:39 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well, so are you...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Upload through SSH kanagaraj Linux - Software 5 09-26-2003 01:59 PM
Can't login to WUFTPD, can't upload/edit files CPUguy387 Linux - Newbie 0 09-11-2003 11:05 AM
file upload apache 2.0 scriptjunkie Linux - Newbie 0 08-08-2003 03:26 PM
File upload via PHP saravanan1979 Programming 1 02-14-2002 04:28 AM
File upload via PHP!!! saravanan1979 Programming 0 02-14-2002 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration