Hot answers tagged

4

FTP is feasible, but should only be used when no other option is possible (ie interacting with an IBM mainframe where SSL/SCP/SFTP is not available). FTP also sends passwords in cleartext, so any malicious parties snooping the traffic would easily get the login credentials. If you absolutely MUST use FTP, use an account that has no access to anything else ...


3

Telnet has two basic modes of operation: line mode and character mode. The default mode is always line mode. The telnet application then has to negotiate with the remote server about what it can and cannot support. This is done through a system called TELOPT and the special character 255 known as IAC - Interpret As Command. Only when the two ends have ...


3

Your approach is not taking in account that contrary to other common protocolos, FTP uses both port 20 and port 21 over TCP. The term passive refers that the protocol is a little more well behaved than the initial implementations. Here is a link: http://www.slacksite.com/other/ftp.html Port 20/TCP is used for data, and port 21/TCP for commands. In ...


3

I am not familiar with this executable, but my guess is that it needs to run with privilege (probably suid root or similar). strace -f cannot run such a process with privilege unless strace itself is run as root and you may need the -u option.


2

You are correct in determining the root cause of the error - could not bind listening IPv4 socket means that something is already listening to port 21 (the default ftp server port). To stop the currently running vsftpd correctly: sudo service vsftpd stop Once you've done that, start your daemon with the customised init script: sudo vsftpd ...


2

You might use lftp instead of the regular ftp client. With lftp you can use mget -E /path/to/files which will delete the source files after succesful transfer. See http://lftp.yar.ru/lftp-man.html for the manual.


2

According to http://www.proftpd.org/docs/directives/linked/config_ref_DisplayChdir.html the DisplayFirstChdir directive has been obsoleted by DisplayChdir with the supplementary true parameter. So instead of: DisplayFirstChdir .message You now need: DisplayChdir .message true If you want the message displayed every time someone enters that directory, ...


2

You can add to the sftp command the option -o NumberOfPasswordPrompts=1 to stop it asking twice for passwords. You might usefully also try -o ConnectTimeout=20 -o ConnectionAttempts=1


2

100GB+ of data seems best fit for private torrent. Here is some basic info on how to start off: Creating a Private Torrent


2

I'd tar and compress before I sent over SSH - the encryption will just slow things down if you try SCP or similar natively. tar cvzf - /path/to/files | ssh user@host.com -C -c blowfish "cat - > bigtarball.tgz" If you want smarted things like synchronising collections of files after the copy, go grab the free version of Bittorrent Sync at ...


2

Your logs show two different problems: For the non-anonymous user, the login timed out. After 20s of waiting for the login to complete, your FTP client gave up. This probably means your authentication configuration (on the server) is not working—especially if you tried to set up virtual users, etc. Other than that, the server might be taking a long time to ...


2

Suggestion: gFTP It has both text and graphical interface. See the license, it can be redistributed.


2

This is not how I would do this, but answering your question anyway: From man vsftpd.conf: chroot_list_enable If activated, you may provide a list of local users who are placed in a chroot() jail in their home directory upon login. The meaning is slightly different if chroot_local_user is set to YES. In ...


2

You can use nc (netcat) to check whether a port is reachable: nc -vz hostname port If a port is reachable is will give you for example: nc -vz 8.8.8.8 53 Connection to 8.8.8.8 53 port [tcp/domain] succeeded!


2

First: Create a script. You can call it whatever you want. I will call it downloader.sh. #!/bin/bash PROTOCOL="ftp" URL="server.example.com" LOCALDIR="/home/user/downloads" REMOTEDIR="dir/remote/server/" USER="user" PASS="password" REGEX="*.txt" LOG="/home/user/script.log" cd $LOCALDIR if [ $? -dt 0 ]; then echo "$(date "+%d/%m/%Y-%T") Cant cd to ...


2

You have created an "infinite loop" with a softlink that points to itself. You may have mixed up the arguments to ln. Since the second argument to ln is an existing directory, it will create a softlink with the same "base name" as the first argument, inside that directory. So you create a softlink ROOT which points to ROOT. When trying to resolve this you ...


2

First point , FTP and SFTP both are different. FTP normal file transfer protocol but SFTP is secure file transfer protocol and this service is from SSH not a stand alone service. If you want to disable SFTP for one user then open sshd_config file in server(machine you are trying to access) and DenyUsers ftp-acc and then restart sshd service with ...


2

If you know the package name you could do something like dpkg -l vsftpd to see what the package is about. If you don't have any idea about package name On debian or debian based systems you may do dpkg -l | grep ftp # grab everthing that contain ftp And with the results, you may do dpkg -p result On Redhat or Redhat based systems like Fedora , ...


2

No, in general this isn't possible. A FTP server usually has commands to get information about files and directories and to store, retrieve, delete and rename files. Commands to mount devices and to send messages to users are also standardized but not implemented in current servers. See the list of FTP commands on Wikipedia for details. No RFC mentions a ...


2

TL;TR: FTP is a broken protocol and FTPS more so. Due to a combination of protocol design and encryption it plays very bad together with firewalls. Try to use SFTP (i.e. file transfer over SSH protocol) instead. FTP consists of a control connection (usually port 21) and the data connections. Which ports are used by the data connections are dynamically ...


2

There might be a limit on 32 bit versions of these applications, especially older versions not compiled with "large file support". Those problems were not a result of packets being dropped, but on writing (and/or reading) the files at the appropriate size. Back in 1995 there were similar problems with tar under Irix not support files > 2Gb. So make sure you ...


1

wget -I /people,/cgi-bin http://host/people/bozo/ -I is followed by a comma separated list of the directories you want to include. However, note that this will just include the full name listed in -I, I believe, not part of the name, it sounds like you may want to be including directories based on a partial pattern. If anyone knows how to do regex type ...


1

You might try using: set ftps:initial-prot P Why? RFC 4217, which governs FTP over TLS, says that the PROT command, when used for TLS, really only has two values: C (Clear), or P (Protected). Based on your log message containing: "" and *** not allowed combination... I'm guessing that the double quotation marks from from that ftps:initial-prot setting ...


1

An FTP server behind a port forwarder can’t serve in the passive mode unless the software used has a special design to pass FTP data connections through. Cases are: The NAT software able to sniff for 227 Entering Passive Mode in FTP control connection, to do port forwarding accordingly and some mangling of FTP control data. The FTP server sending passive ...


1

Via OpenSSH configuration, one could disable access in sshd_config: DenyUsers joe bob Though it might be more sensible to have a list of folks who are allowed to SSH, and then deny everyone else: AllowGroups wheel staff Or instead to lump all the ftp users into a particular group (say, nossh), and deny that. It is easier to change group memberships ...


1

For ftp access without shell or other access, vsftp supports virtual users. The solution basically amounts to using PAM to operate on a different user list, and adjusting vsftpd config to honor that list. There is a detailed article here: https://help.ubuntu.com/community/vsftpd The article mentions needing "db_util"; on Jessie you can find several ...


1

It's hard to ask a question about linux distros in general, because some might... but, this is my experience with it, using primarily Ubuntu 14.04 server every day at work, setting up and configuring servers. There's not one that comes preinstalled (unless you select it at the last point of the install process - install software), but the most popular and ...


1

The answers to this question at Server Fault suggest the only way to do this is to run two separate instances of vsftpd, each with one of the configurations you want.


1

You can still bind it to 0.0.0.0, however you have to open the port with your firewall interface (depends, probably ufw or iptables on ubuntu). 0.0.0.0 binds to all interfaces (localhost as well as for example your ethernet interface). I recommend to search in the ubuntu documentation about firewalls. If your computer is behind a commonly configured home ...


1

Appears you need to install ftp. Such an insecure protocol isn't installed/enabled by default on RHEL 6. yum install proftpd will install ftp.



Only top voted, non community-wiki answers of a minimum length are eligible