LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-04-2013, 09:47 AM   #1
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Rep: Reputation: Disabled
proftpd: send file ESX 4 to RHEL6 whats the syntax?


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.

thanks
 
Old 04-04-2013, 10:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by borgy95 View Post
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.
 
1 members found this post helpful.
Old 04-04-2013, 10:26 AM   #3
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Original Poster
Rep: Reputation: Disabled
TB0ne please accept my wettest of digital kisses.

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?
 
Old 04-04-2013, 12:25 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by borgy95 View Post
TB0ne please accept my wettest of digital kisses.

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.
 
  


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
proftpd: ESX 4 to RHEL6 whats the syntax? borgy95 Linux - Software 1 04-04-2013 11:26 AM
Whats wrong with this syntax? AsherSevyn Linux - Newbie 8 12-03-2012 05:47 AM
[SOLVED] send a file using the sftp syntax karthik.m.kuttan Linux - Newbie 2 04-01-2011 04:52 AM
.htaccess - whats wrong with this redirect syntax? neocontrol Linux - Server 3 03-16-2007 02:55 PM
Proftpd send e-mail when user upload a file eduac Linux - Software 2 03-25-2006 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration