LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-30-2016, 11:37 PM   #1
Jackpot
Member
 
Registered: Jul 2016
Location: Bumblefuck
Distribution: Windows7 Windows10 Ubuntu16 KaliRolling
Posts: 60

Rep: Reputation: Disabled
FTP/TFTP and server help


I realize this is prob a dumb question but I never used FTP/TFTP before and was just wondering if anyone can point me in a direction to properly set it up on my Ubuntu 14.04...I wanted to start messing around with it more and I realize its client/server based but will I need have it setup on both machines to send a file?

I will also be using the TFTP function briefly to send my new binary Mac address after I flash my router with the DD-WRT and sense it will be directly connected to my laptop, I also wasnt sure if I had to setup an TFTP server for that purpose as well?

Thanks
 
Old 07-31-2016, 09:14 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
An ftp server (ftpd) is used only at the server. The clients use an ftp application to attach to that server and then use ftp commands to put/get files.

tftp (meaning "trivial" ftp) is usually a configuration of an ftp server - it has NO authentication used, which makes it relatively easy for client applications to use. This is why tftp has been used to boot diskless nodes. As I recall, it uses UDP or TCP for one-way file transfer (from the server to the client).

Setup for both should be in the documentation for the ftpd server.
 
Old 07-31-2016, 08:49 PM   #3
Jackpot
Member
 
Registered: Jul 2016
Location: Bumblefuck
Distribution: Windows7 Windows10 Ubuntu16 KaliRolling
Posts: 60

Original Poster
Rep: Reputation: Disabled
So if Im just using FTP/TFTP/SSH to just simply send files between two computers on the network, I wont need to setup the server side of it and I can just use the client by itself? Everything I see says to setup both the client and server so thats what was confusing me the most.

Last edited by Jackpot; 07-31-2016 at 08:53 PM.
 
Old 07-31-2016, 10:29 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
tftp and ftp are separate protocols and usually separate servers. For servers, tftpd or ftpd,vspftd, proftpd etc. The client needs a client application which is tftp for tftp. ftp or lftp for command line ftp clients, GUI can be the file browser or filezilla for a couple of examples.

In most cases the default Ubuntu configuration will work as is. You will also need to configure the firewall to allow traffic on the server for whatever servers you are running. I've never used tftp for DD-WRT so I have not looked at the detailed instructions. I don't know if the router is the server or the client.

Since you mentioned ssh in post #3 it works the same as the others, sshd for the server and ssh/sftp/scp for a command line client or the file browser / filezilla as GUI clients.

Last edited by michaelk; 07-31-2016 at 10:36 PM.
 
Old 08-01-2016, 12:01 AM   #5
Jackpot
Member
 
Registered: Jul 2016
Location: Bumblefuck
Distribution: Windows7 Windows10 Ubuntu16 KaliRolling
Posts: 60

Original Poster
Rep: Reputation: Disabled
Ok thanks for the comment...I think Im starting to get it but not all the way there yet lol I found a good article that explained you need both client and server in order to pull/put files so just need to read up. Also ended up downloading both client/server software today for FTP and SSH so can start messing around after I configure everything.

In the middle of flashing my old Linksys wrt54g router with the DD-WRT so can get more out of it and would like to see how good the repeater function is on it after. They say to use the TFTP at the end to send the new binary mac address and never used it before so didnt want to fuck it up.
 
Old 08-01-2016, 02:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I don't remember but I believe you can manually enter a MAC using the web interface.
 
Old 08-01-2016, 09:57 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Not sure you'd need a mac address in this situation. Do you have a link to what you are looking at?

This is official way. TFTP is second choice.


http://www.dd-wrt.com/wiki/index.php...hing_with_TFTP

A 30/30/30 reset should return it to default ip. If not then you could use mac address with static arp to make it any ip address in your lan subnet.

Last edited by jefro; 08-02-2016 at 02:55 PM.
 
Old 08-04-2016, 01:13 AM   #8
Jackpot
Member
 
Registered: Jul 2016
Location: Bumblefuck
Distribution: Windows7 Windows10 Ubuntu16 KaliRolling
Posts: 60

Original Poster
Rep: Reputation: Disabled
Awesome. Thanks for that article. I was just going off what they said to do for my router on the DD-WRT wiki but they weren't too clear on the whole process to tell ya the truth. I know that I have to use the GUI to initially flash the router with the firmware but Im not sure if they have a GUI for the mac address, think its more like cloning a mac address like they have in Ubuntu. I appreciate the feed back though.
 
Old 08-04-2016, 04:54 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You don't have to use gui. It is suggested as the preferred way. I suggest that you do use it instead of tftp.

Some old timers have configured switches a lot so they use tftp.

Are you talking about this passage?
"
Do not forget to make note of your current settings, especially if you have static IP addresses. A quick way of doing this is to take screenshots of your current configuration screens (which can be found on your web GUI, or online router interface - clock).

It can be essential to record your current WAN MAC address. Some ISPs do not allow an immediate change of the routing hardware and changing the firmware changes the MAC address. (You may also find these on your web GUI - clock). "
 
  


Reply



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
FTP, VSFTP, TFTP, SFTP configurations files. ohijames AIX 2 07-31-2010 06:47 AM
PXE Boot: tftp, ftp or http? xzased Linux - Server 3 07-29-2010 11:51 PM
Configuring FTP and TFTP server in RHEL 4.0 findtheking Linux - Software 2 09-27-2007 11:05 PM
ftp/tftp? juanb Linux - General 2 10-25-2004 05:34 AM
TFTP vs FTP dvong3 Linux - General 2 10-30-2003 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

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