Hot answers tagged

6

with lftp: lftp ftp://user:password@host -e "get -E remotefile; bye"


6

with curl: curl ftp://example.com/ -X 'DELE myfile.zip' --user username:password


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

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


2

The ftp program is for the insecure ftp protocol. Your vendor has specified that you use Implicit FTP over TLS which is a way to encrypt the connection and keep your credentials and data private over the Internet. Fortunately, there is a program called lftp which understands this protocol. lftp open -u [username] ftps://host.com:46800 Password: [enter ...


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

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

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

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


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


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

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

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

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

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

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

May be you have error in your proftpd config file. You have to perform configuration check. The easiest way to do informative syntax check as is stated here is to run: proftpd -td10 or you can run (less noise): proftpd -td5 For sample config in your question, the result is: 2015-06-04 12:05:43,290 debian proftpd[22458]: using PCRE 8.35 2014-04-04 ...


1

You will need an FTP client, one way or another. Since this is Ubuntu, the Gnome desktop environment is probably available. It includes an FTP client which allows all Gnome applications to access files over FTP. Open Nautilus (the file manager), select “Connect to Server” in the menu, and enter the ftp:// URL (recent versions of Nautilus) or the server ...


1

Normally one uses the ftp program from the command line. If that is unavailable, the curl suite is almost always installed can be used to fetch as well as other ftp operations via the -Q option (see the man page on this). If vim or emacs is available, both have plugins that will do what you need.


1

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


1

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


1

s/755/2775/ You're setting the owner to apache, denying group write permissions, and using newuser to attempt to upload. Given your scheme, you want to allow group write permissions, and I recommend 2775 versus 775 in order to keep new files owned by the apache group at creation.



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