Results 1 to 4 of 4
Hello.
I'm a total linux noob. I have installed ubuntu 64 desktop.
I have installed vsftpd (unconfigured).
I have configured ufw properly (port 21 is open ONLY for home network, ...
- 01-17-2012 #1Just Joined!
- Join Date
- Jan 2012
- Posts
- 5
vsftpd as ftp AND sftp server
Hello.
I'm a total linux noob. I have installed ubuntu 64 desktop.
I have installed vsftpd (unconfigured).
I have configured ufw properly (port 21 is open ONLY for home network, port 22 is open for everybody).
I have know idea how to configure vsftpd to be able to work with ftp AND sftp at the same time.
As a matter of fact, I complitelly dont understand vsftpd and it's configurations. Can you please explain me how to configure it from zero. I have my files in /home/myuser/
I want to be able to work with this folder in ftp AND sftp (read/write... all operations).
Thank you.
- 01-17-2012 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
vsftpd is an FTP server and runs by default on port 21.
sftp (Secure FTP) is part of the OpenSSH package and runs by default on port 22.
To configure vsftpd, edit the config file, typically /etc/vsftpd.conf.
To configure sftp, look at the /etc/ssh/sshd_config file.Code:man vsftpd man vsftpd.conf
By default, you should be able to access your home directory, if you log in with your account with both ftp and sftp. You'll just have to make sure the two daemons are started first.Code:man sshd_config
Then connect to them locally, e.g.:Code:sudo /etc/init.d/vsftpd start sudo /etc/init.d/ssh start
Code:ftp localhost sftp localhost
Last edited by atreyu; 01-17-2012 at 01:21 PM. Reason: typo
- 01-20-2012 #3Just Joined!
- Join Date
- Jan 2012
- Posts
- 5
First, thank you for the explanations.
Ftp was working until this morning
My dougher is watching movies from her windows xp laptop.
The movies are on my ubuntu box + vsftpd.
The movies are in /home/myuser/daughermovies/
Her win-xp laptop using xmbc as ftp client.
Everything was working but i figured out that myuser is actualy sudoer. So I removed myuser from sudoers file. I thoght to myself that my user will still have all the rights for /home/myusers/daughermovies(After removing myuser from sudoers file I did 'chown myuser /home/myuser/daughermovies' to be sure that myuser can still share his folder through vsftpd). When I checking on my ubuntu box "ftp localhost" everything is PERFECT. But windows laptop stopped be connected to be connected to ubuntu box (after myuser:mypassword stopped be sudoer). Currently I have no idea what to do.
- 01-21-2012 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
On the ubuntu box, in a terminal window, can you ftp locally using the username and password that your daughter uses on the XP laptop?
Once logged in to your FTP session in the terminal window, what directory are you put in? /home/myuser? can you cd into the daughermovies sub-directory?
Can you explain the bit about XMBC Ftp client on the Windows XP laptop? Is that the AppleTV plugin, or something else?
Also, are you sure the Ftp client thing is not using SFTP, instead of FTP?
Also check your logs for clues:
And has the firewall on the ubuntu box been turned on, possibly, where it was off before?Code:/var/log/messages /var/log/secure /var/log/xfterlog


Reply With Quote
