Tag Info

Hot answers tagged


When you define an alias, the command you set is run instead of the one you wrote. This means that when you run ftp abc.com, what is actually executed is echo do not use ftp. Use sftp instead abc.com A simple solution is to use a function instead of an alias: ftp(){ echo 'do not use ftp. Use sftp instead'; } Alternatively, you could use printf as ...


alias ftp='echo do not use ftp. Use sftp instead. # '


Just put a space and the comment character # at the end of the alias string: alias ftp='echo do not use ftp. Use sftp instead. #' ftp abcd.com do not use ftp. Use sftp instead. This will cause the parameters to be treated as a comment. Just do not forget to add a space before # otherwise it will not be interpreted as a separate token after the alias ...


Unfortunately, you are using Name Based Virtual Hosting which works because apache reads the HTTP header for the hostname of the client and decides which <VirtualHost> block to use depending on that value. Your block tells it to proxy the request to another server. There is no similar facility in ssh or ftp. The nearest you can get is to use ...


You can use access control lists commands. First set owner apache to the directory sudo chown -R apache:apache /var/www/public_html/a Now set acl so that ftp user can upload folders. FOR USER sudo setfacl -R -m u:yulichika:rwx /var/www/public_html/a FOR GROUP sudo setfacl -R -m g:users:rwx /var/www/public_html/a Hope this will solve your problem.


You can use a client that supports the FXP protocol, as described in one of the answers from this webmaster.stackexchange.com Q&A: How can I transfer files from one server to another server using FTP The following is from the SmartFTP Knowledge base: excerpt What Is FXP? FXP stands for File eXchange Protocol. It lets you copy files from one ...


The 'ftp' command does not seem to return other error codes than 0. An alternative solution would be to check the FTP return codes. There is some examples in how to do this here: http://stackoverflow.com/a/4442763

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