Microsoft
Software
Hardware
Network
Question : Problem: Scripting automated SFTP transfers from Windows to Linux using OpenSSH
I am having a problem automating SFTP transfers. I am wanting to schedule these transfers from Windows machines to a Linux server. I have installed OpenSSH on the Windows boxes and can successfully authenticate and make the transfers SFTP manually. The problem is getting the SSH key exchange to work so I don't have to enter a password.
I have generated the keys and added the public key to the authorized_keys file on the server. Then I got an error about the permissions on my id_rsa file (private key) being too open. I went in and removed all permissions from the file in Windows and the error went away. Now, when try to sftp the following hapens:
c:\users\user> sftp
[email protected]
Connecting to domain.com...
Enter passphrase for key '../../../id_rsa':
Password:
Despite the fact the key exchange seems to be working fine, it still asks for the password, preventing me from automating the authentication in a script. It seems I need to change a configuration on the windows side so authenticates automatically with the key exchange but I can't find where to do this. Can anyone help?
Thanks!
Answer : Problem: Scripting automated SFTP transfers from Windows to Linux using OpenSSH
I figured this out. It is a matter of turning StrictModes off in the sshd.conf file under the etc directory and restarting the service. Surprised this was so difficult!
Random Solutions
Problem: speaker for Mac G4 Cube
Problem: Norton, Ghost, 2003, acer extensa 5220, will not boot
Problem: Limited or no connectivity
Problem: XVNC Problem - No password configured for VNC Auth
Problem: A CSV parser in C#
Problem: Problems connecting Iphone 2.0 to Exchange 2003
Problem: How can one make sure an HP 3050 USB only printer installs with a port that begins with USB and DOT?
Problem: Keyboard shortcut for Magnifying Glass
Problem: Computer hangs up red hd light stays on
Problem: iMac G5 runs very slowly