Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Hi all,
when i try to get or put files via ftp from linux to linux, i gain access with login password etc, but it keeps telling me that there is no such file or directory when there clearly is. i have taken passive mode off but makes no difference. ls command clearly shows the file on the remote system so using get should place that file on the local machine. the response i get back is 550 processesthe name of the file im trying to get)No such file or directory.
Any help would be great as i'm spending far too many hours on it. Thanx
Singist
hmmm, this may sound silly, but check the case of the filename. linux is case sensitive, so FiLe is not the same as file.
you might also want to check permissions on the file, make sure you can actually read it.
does the filename have things like spaces in it, or other special characters? most ftp clients, when they see 'get this file.txt' will thingk you mean 'get this', if your filename does have spaces, you can use a quotations, like 'get "the file.txt"'
The filename in question is called processes, ive checked the case from system to system and it has the permissions set to 600, there are no spaces in the filename and in case you're wondering why it isn't processes.txt, i changed it to see if it would make any difference but to no avail.
Thanx for replying
A stressed out Singist
now you come to mention it, no i can't. just tried several files that i created on the fly but it dodnt work. This is somewhat bizarre.
Singist <close to the window..lol>
yes i can ls, pwd etc...however when i put the file across to the remote machine..it was successful, but when i checked the contents of each file on local and remote..the content is completley different
A bewildered Singist, <shuffles pc's nearer to the window>
i actually want the disc usage stats that cron is redireting to a text file. this text file is what im, trying to 'get'. im using a here file to grab it via ftp....gets as far as making the connection, but then it says file or directory does not exist.<shrugs shoulders>
so, you are able to connect, to view directories and their contents, but if you put a file, it comes out mangled, and if you get a file, it doesnt work at all?
this is very unusual to say the least....
as for putting the file... are you sure your transferring it in the right mode? (ascii or binary)... it sounds like a lame answer, because i really cant think of anything else that would cause that.
to be honest, im clutching at straws. this certainyl seems very very unusual. but perhaps there is another way. rather than using here files and ftp, why not use wget, it can grap things from ftp's.
eg: a script to use wget to grab a file from an ftp and then cat it.
Code:
#!/bin/bash
#use wget to grab an ftp file
wget ftp://username:password@my.ftp.com/path/to/processes
#cat the local file
cat ./processes
try it with wget, and see if that works, wget seems to be a little more resiliant to strangeness than ftp and here files when scripting (at least, in my experience anyways)
(and if this doesnt work, push the pc out the window, its been asking for it )
ok it now seems that the ftp is not working on the remote machine, its using proftp that comes with xampp.xampp is also installed onlocal machine. both usernames and passwords are the same but when i try to connect to local from remote...login and password fails. odd that local to remote works but no the other way round.
hmmm, i have never used proftpd personally, i always tend to stick with vsftpd (here http://freshmeat.net/projects/vsftpd/ if your distro doesnt have its own rpm or similar.)
as for clients... wget is my favourite, simply because its awesome, but goof old 'ftp' comes a close second.
ok get this..ive just installed vsftpd in /etc, unpacked it and checked the status by typing service vsftpd status, i got in return vsftpd unrecognised service. what the hell is going on with this system?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.