ftp server

Bob ubuntu-qygzanxc at listemail.net
Mon Dec 17 17:57:17 UTC 2018


** Reply to message from Little Girl <littlergirl at gmail.com> on Sun, 16 Dec
2018 12:40:50 -0500

Thank you.


> Hey there,
> 
> Bob wrote:
> 
> >I want to setup an ftp server in Ubuntu to serve data to a system
> >running in VirtualBox.  The os in the VirtualBox does not have much
> >support so I can not use shared files.
> 
> VirtualBox offers several ways to attach VMs to the network and uses
> NAT by default, which mostly isolates them and makes them unsuitable
> for use as servers or for shared files. You'll want to pick a
> different way of attaching the VM to the network. This page does a
> nice job of describing them so you can decide which is best for you:
> 
> https://blogs.oracle.com/scoter/networking-in-virtualbox-v2#Bridged

Interesting article, I am glad you included the URL.


> >what is a good (simple) ftp server to use in this case?
> 
> Two sftp servers that are popular and quick to set up are
> openssh-server and vsftpd, both of which are in the Ubuntu
> repositories. Each will run automatically when the VM is launched and
> each can be connected to with a variety of methods (PuTTY, FileZilla,
> browser, command line, etc.) at the VM's IP address with the
> credentials of the VM's users.
> 
> Below are basic instructions for each of them, but you should also do
> your own research to familiarize yourself with their details to make
> sure you're protecting your data and access to the server(s)
> properly, etc.
> 
> To install and set up openssh-server in a VM:
> 
> 	1) Open a terminal window in the VM.
> 
> 	2) Install the server with this command:
> 
> 	sudo apt install openssh-server
> 
> 	3) Back up the config file with this command:
> 
> 	sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
> 
> 	4) Edit the config file with administrative rights with this
> 	command:
> 
> 	sudo nano /etc/ssh/sshd_config
> 
> 	5) Make the changes you'd like inside the config file,
> 	opening the sshd_config man page in another terminal window
> 	to use as a reference.
> 
> 	6) Save the file by pressing the Ctrl and o keys at the same
> 	time, then pressing the Enter key, then pressing the Ctrl and
> 	x keys at the same time.
> 
> 	7) Restart the server with this command to make the changes
> 	take effect:
> 
> 	sudo /etc/init.d/ssh restart
> 
> 	8) Close the terminal window(s).
> 
> To install and set up vsftpd server in a VM:
> 
> 	1) Open a terminal window.
> 
> 	2) Install the server with this command:
> 
> 	sudo apt install vsftpd
> 
> 	3) Back up the config file with this command:
> 
> 	sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.original
> 
> 	4) Edit the config file with administrative rights with this
> 	command:
> 
> 	sudo nano /etc/vsftpd.conf
> 
> 	5) Make the changes you'd like inside the config file after
> 	reading the descriptions for each setting in the file and
> 	opening the vsftpd man page in another terminal window to use
> 	as a reference.
> 
> 	6) Save the file by pressing the Ctrl and o keys at the same
> 	time, then pressing the Enter key, then pressing the Ctrl and
> 	x keys at the same time.
> 
> 	7) Restart the server with this command to make the changes
> 	take effect:
> 
> 	sudo /etc/init.d/vsftpd restart
> 
> 	8) Close the terminal window(s).

Thanks for the information.  I think I will try vsftpd first and see how that
works.

-- 
Robert Blair


I contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle.  -- Winston Churchill




More information about the ubuntu-users mailing list