Hot answers tagged

33

You can also use inotifywait from the inotify-tools package. inotifywait -r -m -e close_write --format '%w%f' /tmp | while read MODFILE do echo need to rsync $MODFILE ... done


16

Lsyncd would be a good solution for this. Lsyncd watches a local directory trees event monitor interface (inotify or fsevents). It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to ...


13

Go to Preferences > Transfer > Default (or whichever preset you are using) > Edit > check Ignore permission errors (in the Upload options section).


10

I was getting the same error in WinSCP. One solution is to change the ownership of the '/www/' folder using chown. That way, you can make the user you log in with into the owner instead of 'root' being owner. I am using an instance of Amazon Linux rather than Ubuntu, but this command worked for me: sudo chown -R -v ec2-user /var/www/ The user 'ec2-user' ...


9

Enable write permissions for the user logging in thru WinSCP. There are two ways to do this. The first way is to change the permissions on the folder to allow anyone to write to it. This isn't the best security. chmod 777 /var/www The second way is to add your user to the group owning the directory, and then setting permissions for the group to write ...


8

The configuration file is stored either in the Windows registry or, if you are using the portable version, in an INI file. (See the documentation.) The registry location is: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2 You can always export the settings to an INI file by pressing Export in the preferences dialog. Note that your passwords are not ...


8

I need this a lot since my code needs to run on remote boxes and I write code on local machine. I found a nice tool which you can use to continuously monitor your local folders and sync them to remote or local folder: https://code.google.com/p/lsyncd/ A simple command to continuously sync a local dir with remote machine over ssh will be: lsyncd -log all -...


8

WinSCP does not have setting like that. In general, the best solution is to log in with account that has read access only.


7

I'd say that the comment left by acidzombie24 is the best advice. Personally I haven't come across a better FTP program than WinSCP. I recommend you change your settings to transfer using Binary, and use an editor like NP++ rather than the in-house editor. Here are a few screenshots:


7

It sounds like you're running your FTP client in a non-elevated context and you're trying to download files to the hard drive in a folder that is not located in your user profile. You have 4 choices: Download files to a folder within your user profile like c:\users\myusername\downloads Run the FTP client in an elevated context (right-click Run As ...


7

You might find the File transfer speed FAQ on the WinSCP site useful, I'll provide the basics: The SSH code of WinSCP is based on PuTTY, so file transfers with the SSH-based protocols cannot be expeceted to be faster than PuTTY. So it might be worth trying a file transfer with PuTTY directly to see if it is comparable. As well as bandwidth, they suggest ...


7

Use Synchronize (Ctrl-S): The prompts afterwards walk you through what you need to do.


6

Cyberduck supports SCP.


6

Wrap the name-with-space with double quote again. winscp.com /command "option echo off" "option batch on" "option confirm off" "open sftp" "put ""C:\abc\EXCEL\RestaurantAutomation\RestaurantReport_2012120172514\x y Report_P10_0010050075.xls"" ""/abc/MG0047/System Generated/x y Report_P10_0010050075.xls""" "exit" Update: Updated the command.


6

What you want to do, can definitely be done with FTP. Technically it's the same, what any FTP client does, when resuming an interrupted file download. Though from an user perspective, I do not know, if any FTP client supports explicit download of only given number of trailing bytes. But some FTP clients will definitely allow you to download new trailing ...


5

Putty and WinSCP use the same underlying SSH2 protocol, the degree of security is mostly determined by this protocol. The two programs aren't really comparable, WinSCP is a Secure Copy (SCP) client, Putty comes with an equivalent called pscp, but pscp is a command-line client not a GUI client. Putty is perhaps mainly used for remote shell access - entering ...


5

I couldn't find any detailed information about "WinSCP continually checking for changes and uploading changed files", but it's hard to believe that it would be more effective than rsync. If you're looking for a near-real-time solution (i.e. an rsync cron job every minute is not enough for your purpose), something like lsyncd or rsync-inotify or pirsyncd ...


5

WinSCP used affected OpenSSL 1.0.1 since versions 4.3.8 and 5.0.7 beta in respective branches. WinSCP 5.5.3 upgraded to OpenSSL 1.0.1g to address the vulnerability. Branch 4.x is not supported anymore and is not planned to be upgraded. Note that OpenSSL is used by WinSCP with FTP over TLS/SSL only. Majority (about 98%) of WinSCP users use SSH (SFTP/SCP) ...


4

This is a simplified version of Cesar's excellent answer and assumes your password still works in SCP. Create a batch file called echo.cmd that contains the following: echo %* pause Place it on a suitable place, such as your desktop. Fire up WinSCP and connect to your site. Click on Options -> Preferences: On the Preferences dialog, go to ...


4

Eventually ends up by using WinSCP which encrypt (or hash?) password and save in registry. So it's not easy to see plain text pwd.


4

Run once-off as you are doing it, iostat reports the average statistics since the system was last booted, not real-time usage. If you use the interval argument (eg. iostat -m /dev/sdb1 5), then only the first report will be averages since the last boot; all the subsequent reports will show averages since the previous report. Personally, I prefer the dstat ...


4

This means your server has some connection timeout (try a look at its "sshd_config" file or equivalent). You can try to play with the "keep alive" options in puTTY or winSCP. Here are my options for some similar case connection:


4

Did you try ownCloud? It seems that it would fit with your use case of a "Dropbox-like". And it can use FTP as a backend for storage. If you're OK with doing/funding a bit of development or waiting for a new release, Syncany is apparently developing what you're looking for, and FTPBox runs on .NET Framework 4, which Mono supports (with a few exceptions) on ...


4

Instead of trying to access the logs as root user, it may be simpler to change the permissions on the server to grant access to the ec2-user. This can usually be done with the commands chown and chmod, but the exact steps depend on the way your server is set up. If you need help to do that, you can post the output of the following commands and I'll try to ...


4

Try going to the Control Panel -> Display -> Change the size of all items. That should make your text bigger.


4

There is a FAQ for this question on WinSCP site: How do I change user after login (e.g. su root)? You need to specify the sudo command in WinSCP session settings, as a custom shell (if you are using SCP) or use sudo in a custom SFTP server startup command (if you are using SFTP). Though there are some limitations, notably that you need to configure sudo ...


4

My preferred way of backing up a remote virtual server is to simply copy files - the kernel is on the host anyway. Of course, you will have to exercise some care when restoring, and it may not be possible to do a full restore (unlike a disk image). On the other hand, it's easier to migrate to another server, such as a local one for testing. Now, downloading ...


4

Quoting Wikipedia: Trivial File Transfer Protocol (TFTP) is a file transfer protocol notable for its simplicity. It is generally used for automated transfer of configuration or boot files between machines in a local environment. Compared to FTP, TFTP is extremely limited, providing no authentication, and is rarely used interactively by a user. ...


4

I do not know of any automatic solution for new files. Though, if you find that you need to keep changing the ownership manually, you can make use of various WinSCP features to make your life easier. WinSCP allows changing ownership in the GUI (though if you use OpenSSH server, you have to use numeric GID/UID): http://winscp.net/eng/docs/ui_properties ...


4

You can change group of the upload directory chgrp nogroup UPLOAD_DIR and set group ID on it chmod g+s UPLOAD_DIR - files created in this directory will have group nogroup. You can set default rights using umask 002 (perhaps when starting WinSCP session?) and all files will have rw rights for group. The owner will still be root, but the Nginx process should ...



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