Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-03-2011, 12:05 PM
|
#1
|
Member
Registered: Jan 2011
Posts: 47
Rep:
|
Transfering files in FTP?
Alright so your probably reading the title or reading this and are going to laugh or already are.
I have just setup FTP on my server (yay for me) using the guide that help.ubuntu provided. So i have configured a couple things and my only question is how do i add files!? :O
I am also wondering, is it possible to put files on it, from my windows machine? For instance, is it possible to put some episodes of a show that are on my windows machine, onto my Linux server?
Thanks for the help guys. Please tell me if i need to be a little more clear. I feel this may be a bit vague.
|
|
|
04-03-2011, 12:31 PM
|
#2
|
Senior Member
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631
|
Use gftp. It's a very simple right and left window style ftp client. Very easy to use.
gftp --> http://www.gftp.org/
It's most likely in your distribution's repos... or installed by default on your system already. It comes with Xfce. I'm not sure about Gnome or KDE.
Have fun!
~Eric
P.S. And yes, you can ftp to your site via Windows also. You can add/remove, etc. no troubles at all. In the old days, you could ftp with IE, but I'm not sure what app Windows' modern versions use these days.
Last edited by vtel57; 04-03-2011 at 12:33 PM.
Reason: addenda
|
|
|
04-03-2011, 02:59 PM
|
#3
|
Member
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Rep:
|
Quote:
Originally Posted by vtel57
In the old days, you could ftp with IE, but I'm not sure what app Windows' modern versions use these days.
|
Yea, you can connect to your FTP server from any web browser by using the URI standard
Code:
ftp://<username>:<password>@<ftpserver>:<port>
$ firefox ftp://myuser1:p@$$w0rdz@myftp.dyn-dns.org:21
You should be able to drag and drop files from the FTP server to your desktop but I don't think you can do it the other way around when using a web browser.
|
|
|
04-03-2011, 03:55 PM
|
#4
|
LQ Newbie
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26
Rep:
|
Lots of ways .. you can go to a command line in Windows and use 'ftp' to ftp in to your Linux ftp server and 'put' the files you want to transfer. Or -- just 'share' the file in Windows -- and mount it under Linux:
1) You need the samba client installed: sudo apt-get install smbclient
2) Mount the windows share: sudo mount //win-machine/sharename /mnt (where win-machine is the name or ip address of your windows machine and sharename is the name of the shared folder). use /mnt or make a directory on Linux just for it (/winshare, whatever).
You can also use a USB stick or external drive to shuttle things if you have one. Not as elegant as the network solutions, but simple :-)
Last edited by eldoran; 04-03-2011 at 03:55 PM.
Reason: add sudo to mount command
|
|
|
04-03-2011, 04:43 PM
|
#5
|
LQ Newbie
Registered: Nov 2005
Location: CT
Distribution: Debian & knoppix
Posts: 2
Rep:
|
FTP to/from your server
It looks like you have received some suggestions to get you going with FTP to your server.
Instead of ftp many consider it preferable to use scp to move files back/forth because it uses the encrypted ssh interface.
Moving files from another Linux box to your machine is as easy as:
following equivalent to a put:
> scp sourcefile username@destination:destinationfilename
or following equivalent to a get:
> scp username@sourcemachinename:sourcefilename destinationfilename
destinationfilename can be . which would deposit the file in whatever directory you currently are in (if you have write access)
That's the simple stuff you can do with it.
Much more capability
To send/receive files from a windows machine we use: winscp {web search revealed several good sites for acquisition}
which works very well, even for users who are not very Linux literate.
GL!
|
|
|
04-03-2011, 04:56 PM
|
#6
|
LQ Newbie
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26
Rep:
|
Quote:
Originally Posted by nc7r
It looks like you have received some suggestions to get you going with FTP to your server.
Instead of ftp many consider it preferable to use scp to move files back/forth because it uses the encrypted ssh interface.
GL!
|
Yes - good suggestion - but make sure Linux is serving ssh:
sudo apt-get install openssh-server
I also prefer scp .. and I like to use 'rsync' which also goes over ssh..
I recommend using 'cygwin' on Windows.. it essentially gives you Linux commands and directory structure under Windows. I always check the ssh and rsync boxes to make sure they are installed (cygwin lets you choose a TON of different packages). You can even make your Windows machine into an ssh server with cygwin - so you can ssh into (and scp to) Windows. I'm not a Windows fan, but cygwin made it more tolerable and let me interact with my Linux machines more seamlessly..
|
|
|
04-03-2011, 09:52 PM
|
#7
|
LQ Newbie
Registered: May 2007
Location: Australia
Distribution: Ubuntu 12.04LTS
Posts: 13
Rep:
|
Quote:
Originally Posted by thund3rstruck
Yea, you can connect to your FTP server from any web browser by using the URI standard
Code:
ftp://<username>:<password>@<ftpserver>:<port>
$ firefox ftp://myuser1:p@$$w0rdz@myftp.dyn-dns.org:21
You should be able to drag and drop files from the FTP server to your desktop but I don't think you can do it the other way around when using a web browser.
|
Also note that Internet Explorer doesn't support the URL with username : password, but it does work with the basic URL
ftp://<ftpserver>
and a popup will ask you for the username and password.
You can fetch but not put using a web browser.
Try "filezilla" if you want a GUI application that is cross platform: supported for windows, and a package is available for various linux distributions.
|
|
|
04-04-2011, 09:29 AM
|
#8
|
LQ Newbie
Registered: May 2010
Location: Ahmedabad-Gujarat
Distribution: Fedora
Posts: 27
Rep:
|
dirtydog7655
First check the permission on ftp user's home directory. is there a write permission on that directory. if yes, then simply go to command prompt of you windows system and type below commands.
Commands:-
ftp ftp.your.server
login with user credential
bin
hash
mput filename (or) put filename
There are lots of tricks to put the file on your server. but as per your question regarding ftp server. these are the above steps which you have to compulsory follow.
|
|
|
04-04-2011, 05:26 PM
|
#9
|
LQ Newbie
Registered: Jan 2011
Posts: 3
Rep:
|
You can use FTP or SCP with SSH as others have mentioned, but you may run into problems with NAT traversal and/or FTP over SSH.
The tool I recommend is open source and it's called "curl-loader".
You can pick it up at: http://curl-loader.sourceforge.net/
And it comes in both Linux and Windows flavors.
One nice thing about curl-loader is that you can resume FTP transfers if the connection was cut in the middle. This is nice if you have a bad connection and/or a very large file you want to transfer but keep getting errors during transmission where you have to start over with other software packages.
Edited to add: [It has all kinds of security features built into it as well; including the use of CA (IPSec) certificates amongst others!]
FWIW
Last edited by wbenton; 04-04-2011 at 05:28 PM.
|
|
|
All times are GMT -5. The time now is 01:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|