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, 10: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, 10: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, 11: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, 11:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 11: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, 11:39 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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 02:59 PM
Can't login to WUFTPD, can't upload/edit files CPUguy387 Linux - Newbie 0 09-11-2003 12:05 PM
file upload apache 2.0 scriptjunkie Linux - Newbie 0 08-08-2003 04:26 PM
File upload via PHP saravanan1979 Programming 1 02-14-2002 05:28 AM
File upload via PHP!!! saravanan1979 Programming 0 02-14-2002 02:55 AM


All times are GMT -5. The time now is 07:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration