[SOLVED] proftpd: send file ESX 4 to RHEL6 whats the syntax?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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,
I've managed to get proftpd installed and running on my ESX4.1 server. as evidenced by the proftpd -h call working. I have the ftp ports open and other networking sorted.
My curiosity is how i now actually invoke proftpd to actually send the a file basically im sending a txt file from /tmp/editme to [remotehost]/tmp/ftptransfers
how do i do this? sorry if this is daft but i've been googling and musing over the man page for ages now.
Well, proftpd is an FTP server...it listens for an FTP client to connect. You should just have to type in "ftp <FTP server name or IP>", and press ENTER. It'll prompt for user ID/password. Type in "help", and a list of available commands will come up...type "help <command>", and you'll see options for it.
So, if you want to change directories on the FTP server to "/tmp/ftptransfers" (although I'd never put files in /tmp AT ALL, but that's up to you), you type in "cd /tmp/ftptransfers", then type in "put /tmp/editme". Done.
If you want to automate this, it'll be tricky, since FTP is fairly interactive. Personally, I'd use SCP (or SFTP, both of which are probably already running, if you have SSH on your server now), since it uses the existing SSH port, and can be used with key-exchange, for passwordless logins. Then you can just type in "scp /tmp/editme user@host:/tmp/ftptransfers", and off it goes.
I completely didn't realise that proftpd was a serverside application. allowing ftp connections to it! I completely get what you mean about using SCP as an alternative. but in this case i am using FTP to test application wrapping security software that should prevent ftp transfers despite it being enabled.
dummy question 2: why do you denounce /tmp as a bad place to store random stuff?
I completely didn't realise that proftpd was a serverside application. allowing ftp connections to it! I completely get what you mean about using SCP as an alternative. but in this case i am using FTP to test application wrapping security software that should prevent ftp transfers despite it being enabled.
dummy question 2: why do you denounce /tmp as a bad place to store random stuff?
Well, /tmp is usually used for temporary storage/junk. It's often very easy to forget when you're storing stuff in there, and just 'empty' the directory without thinking about it, if you need space. Also, /tmp is usually less secure...pretty much anyone can read/write to that directory, so files there are less secure.
Just my opinion...I'd create a separate directory for FTP personally, but that's totally your call.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.