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

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

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

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

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

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

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


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

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

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

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


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

Windows line endings consist of the two-character sequence CR, LF. CR is the carriage return character, sometimes represented as \r, \015, ^M, etc. A Unix line ending is just the LF character. A way to convert Windows line endings to Unix line endings using only standard utilities present on all Unix variants is to use the tr utility. tr -d '\r' ...


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 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.


1

There are several different FTP servers packaged within Debian, which you can see via: apt-cache search ftp-server One of the most popular servers around is proftpd, and that can be installed upon Debian systems with: apt-get install proftpd Once downloaded debconf will ask if you wish to run the server via inetd, or in a standalone fashion. In general ...


1

Using strace ftp on my fedora, it didnt even read ~/.netrc unless I ran it with a hostname on the command line. Also, it didnt recognise the macro until I explicitly added a blank line after it, at the end of file! So try $ ftp ftp.nyxdata.com ftp> $download_nyse_index


1

A macdef directive, like the others (login, password, etc.), only applies to the machine-headed stanza that it's in. As far as I know, putting a macdef directive before the first machine stanza has no effect, and there's no way to have a macro available before the open command is executed. Your macro will work if you open a connection to the site first: $ ...


1

Have you looked at rsync? From how I interpret your question, this should accomplish exactly what you want. Here is a description how to setup an rsync daemon to connect without ssh.


1

Example of 'here' document after creating a ~/.netrc with conections/users/passwords. #!/bin/bash ftp 11.1.1.11 << eof ascii get /tmp/myfile.txt bye eof Pitty you can't use lftp, it's a great client and I don't see any security difference between having your passwords in ~/.netrc or having them in the script if you give it ...


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.


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

dos2unix: sed -i -r -e 's/\r$//' file unix2dos: sed -i -r -e 's/$/\r/' file


1

php.ini has a directive has been named disable_functions , For example: disable_functions = ...



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