Hot answers tagged

16

The FileZilla uses a PuTTY/psftp source code for an SFTP implementation. Actually the FileZilla runs a hidden PSFTP sub-process. But it uses its own build of PSFTP (FzSFtp.exe) that employs few optimizations (and other modifications), including: SFTP transfer queue is 4 MB (comparing to 1 MB in PSFTP) Allocates memory in much larger chunks (32 KB ...


7

WinSCP supports SSH keys. In /etc/ssh/sshd_config set PasswordAuthentication No PermitRootLogin without-password Copy your public key to /root/.ssh/authorized_keys (there will be a similar file inside of ec2-user's home directory). If you want to just copy that type sudo mkdir -p /root/.ssh sudo cp /home/ec2-user/.ssh/authorized_keys /root/.ssh/ ...


6

WinSCP uses PuTTY code internally. So there should not be any difference in an encryption algorithm selected. Though WinSCP employs some optimizations on top of the PuTTY code, particularly larger internal and network buffers. That helps in certain cases to achieve a better throughput. Some references: http://winscp.net/tracker/show_bug.cgi?id=615 ...


6

There are three common factors that affect a transfer speed: Bandwidth - An obvious factor that's apparently not your trouble. Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of ...


5

It might be an invalid .bashrc file. In my case I found it was referencing another recently deleted script, and so failed.


3

The easiest way without chains: download file from Server-A to Server-C using scp download file from Server-C to Server-B using scp download file from Server-B to local PC using WinSCP


3

Edit /etc/ssh/sshd_config, change these lines PermitRootLogin forced-commands-only PasswordAuthentication no To: PermitRootLogin yes PasswordAuthentication yes Set a password for root and restart sshd. passwd service sshd reload Disclaimer: I don't recommend this at all, but since you asked I'll give you the gun - you decide what to do with it.


3

Use port forwarding. WinSCP, for example, has an option to create a connection through a ssh tunnel and it uses port forwarding. Still, since you need to tunnel through two hops, you cannot use it. I would propably first create a ssh connection to server-B which has a tunnel to server-C. You could use plink.exe for this (part of putty): plink.exe -l ...


3

On the very same page you linked to there is a put command (http://winscp.net/eng/docs/script_commands#put). Didn't you even look?


3

I think the documentation explains it pretty clearly: http://winscp.net/eng/docs/scriptcommand_synchronize You want to use the synchronize command instead of a get command. When the first parameter is local, changes from remote directory are applied to local directory. When the first parameter is remote, changes from the local directory are applied ...


3

It's a tftp server, so you'll need to use a tftp client.


3

I want to share my solution because I'm also searching several time for a workaround. I'm using CentOS7 right now and try to get connetion via WinSCP (Pubkey Auth). sshd_config .. RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication no UsePAM yes .. @CentOS visudo - add following 2 entrys ...


2

I guess your directory has the wrong owner/group, though the file itself has. What WinSCP is probably complaining about is that it can't set the directory’s timestamp, which is normally also updated if you change a file in it.


2

Chroot sets / to be that directory. The users home directory is apparently set to /var/www/websites/site1 so when WinSCP logs in, it tries to start in the user's home directory which on the actual system would be /vhosts/wild.domain.com/var/www/websites/site1 Presuming this stefanos user only accesses the system through sftp, it would be safe to set the ...


2

I ran into this problem when I forgot to open the extra ports that Passive FTP mode requires. Basically, you need to open/allow a range of ports through your firewall in addition port 21 that you have already opened. It looks like you are using Microsoft's FTP Server. Microsoft has a support page with instructions here. When I did this, I opened port 21 ...


2

I don't think Cygwin scp is corrupting the files. I think you need to run dos2unix on your text files before or after copying them to the Linux system. I'm not sure, but you probably need to do same for files going into your jar files before zip'ing them.


2

I believe that the error message you are getting explains it. Your server's root account has wrongly setup profile scripts. Some of them print a message that violates SFTP protocol. There's different profile script for a terminal and non-terminal session (one that has and does not have TTY allocated). Messages can be printed only from the script used for ...


2

It turned out that the reason I was receiving this error was that I did not have enough disk space to upload all the files onto the Linux Server. My server having 8gb and the Folder being 8.60gb caused this error. I used this command to check the disk space: df -H Then I increased my EC2 instances disk space to solve the issue. Thank you for your time! ...


2

You prepend the username to the beginning of the key if you want to use gcloud command to add the key to the metadata: $ gcloud compute project-info add-metadata --metadata-from-file sshKeys=my-ssh-keys.pub If you're adding manually, skip prepending the username.


1

According to this site: http://forum.filezilla-project.org/viewtopic.php?f=2&t=17604, the problem is a bad username/password combination.


1

The following is what worked for me created a file called script.text. Following is the content of script.txt open ftp://uname:pwd@ftpserver_url then from the command prompt executed the following statement c:\ "path_to_winscp\WinSCP.exe" /console /script=c:/script.txt


1

Have you tried using something like ftp://user:pass@ftp.example.com as the address ? You script can then build this uri depending on you environment. This example uses sftp but ftp should be similar.


1

I had a similar problem. If the sshd_config file permissions change then this is likely the problem. It should be 644. see http://www-01.ibm.com/support/docview.wss?uid=isg3T1012888


1

You can safely restart an ssh server whilst connected to it. It specifically keeps your connection open to help avoid locking you out. But you should always open a second connection and check that you can initialise a new connection before closing the first one! It sounds to me like that's one of two problems: sftp-server falling over for some reason ...


1

Try this if you have root : iptables -A PREROUTING -t nat -p tcp -i eth0 --dport *PORT* -j DNAT --to 127.0.0.1:22 Where PORT is a port you can access normally through your proxy, what will happen is that on your server you will get rerouted to that port FROM within your server. So basically you bypass your proxy. Most of the time I use the backup http ...


1

You can always write a PHP script to handle uploads.


1

Is Unison what you want? Unison is a file-synchronization tool for Unix and Windows. It allows two copies of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other. Unison can deal with ...


1

Please have a look at Microsofts SyncToy It provides a intuitive gui in case your not much of a fan of the shell. It has about the same features as robocopy, though - I'm not sure which requirement of yours is not met... it does 2way sync on file level, latest timestamp wins.


1

ROBOCOPY a command line utility can do that (and more). It is included with Windows Vista, Windows 7 and Windows Server 2008. Available in the Windows Resource Kit for various other versions (Windows 2000, Windows 2003 etc).


1

WinSCP has support for SSH tunneling. To enable it: Click on "Advanced options" check box. in the configuration tree click on "Connection/Tunnel" and here add the intermediate hop server. in the configuration tree click on "Session" and configure the destination server. Save the session for later user by clicking "Save..." You can chain the rest of ...



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