Categories
Tag Cloud
Connection is always refused by Ubuntu in a Virtual Machine (Hyper-V)
- 2
-
Tired of reading? Press play to listen instead. N/B. Might not work on some articles
Ready
Step 1 - Enable connection
# Backup the current configuration file. (optional)
sudo mv /etc/vsftpd.conf /etc/vsftpd.backup
# Uninstall vsftpd and purge the configuration files.
sudo apt-get remove --purge vsftpd
Lastly, re-install vsftpd.
sudo apt-get install vsftpd
# Test
ftp -p x.x.x.x
The default password for the user 'ubuntu' on Ubuntu is blank.
Try if the above connection works, if not got to the next step to configure permissions
Step 2 - Permission to edit the file /etc/vsftpd.conf
sudo chown -R username /path/to/directory
Example
sudo chown -R ubuntu /etc/vsftpd.conf
Step 3 - Enable writing
In the file "/etc/vsftpd.conf", uncomment the line
#write_enable=YES
Important:
Change the file permission in Terminal instead of using a Text Editor:
sudo suvi /etc/vsftpd.conf
ESCAPE :wq (to exit)
Save the file and restart vsftpd with sudo service vsftpd restart
Credits: Manda3d