Automate SFTP UNIX to Windows

Thread Tools Search this Thread
Operating Systems AIX Automate SFTP UNIX to Windows
# 1  
Old 07-22-2008
Automate SFTP UNIX to Windows

Could you please help to solve the below issue...
my requirement is automate the SFTP between UNIX and Windows server.
I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server).
For that, i have generated key pair (private/public) in my AIX machine .
ssh-keygen -t dsa
and public key copied into .ssh2/authorised_key file in AIX .
then i transfered my public key file ( to Windows Server through email.
But i dont know where to copy and save the public key file in windows.
In windows i have installed Filezilla SFTP server and am able to do SFTP with password .
In VMS Server and UNIX Server, its working fine , I pasted in .ssh2/authorised_key file
Anticipating your reply...

Cheers Smilie,
# 2  
Old 07-22-2008
Usually you don't just copy the key to some directory, but append the key to the authorized_keys. No idea, where this is on your win box.

Did you enter a password or passphrase while the generating the keys btw?
# 3  
Old 07-22-2008
many thanx for ur reply...
I have not given password or passphrase ,while generating the key.
But i think ,somewhere inside Filezilla server(3rd party SFTP server for windows) some authorisation file should be there. but am not able to locate that. u have any idea about known_host in windows ?

Cheers Smilie,
# 4  
Old 07-22-2008
As said, I have no clue on the windows side. I bet there is a documentation on the site where you get filezilla sftp server. That should be a very common thing to do.
# 5  
Old 05-07-2009
I had a project where I needed to automate retrieving files from a vendor, so I used ssh-keygen and gave the vendor the public key from that, and it worked fine.

But if I need to automate sending files using SFTP, would I still generate the key pair from the server that I'm sending from? From what I've learned about PGP encryption, it's always the side receiving the file that has to provide their public key to the side sending the file. Is SSH key encryption different than PGP key encryption?

How does SSH key encryption and SFTP work for sending files? Does it use the private key to encrypt the file, and then then the receiver uses the public key to decrypt the file? That's opposite of how PGP works from what I understand, but maybe SSH just doesn't work the same as PGP.
# 6  
Old 05-12-2009
Wow, I guess I stumped everyone, eh? Nobody has ever automated sftp to send files?
# 7  
Old 05-13-2009
I'm not sure about how the file is actually encrypted. The system that initiates the sftp connection is the one that has to supply their public key to the other system.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

2. UNIX for Dummies Questions & Answers

SFTP - UNIX to Windows without keys

When I try to SFTP from our UNIX box to an outside vendor using passwords - no keys, I am immediately get disconnected. We have the FIREWALL open because I get prompted for the password. Here's the error: sftp Connecting to's... (5 Replies)
Discussion started by: blt123
5 Replies

3. Shell Programming and Scripting

SFTP from Unix to Windows

Hi all Not sure where I should be posting this so apologies if it's in the wrong section. I'm trying to set up a system where we can copy a file (get) from a Windows server to a Unix server using SFTP in an automated way. I've installed CoreFTP Server on the Windows server and can connect... (2 Replies)
Discussion started by: huskie69
2 Replies

4. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

5. Shell Programming and Scripting

sftp connection from Unix to windows

Hi guyz, I have a Solaris 5.9 box from which i need to connect to a windows server using Coreftp (passwordless login). Coreftp is installed on windows and in solaris, it is already available.I generated a pair of key(public,private) in windows and specify pub key over there, edit the know_hosts... (7 Replies)
Discussion started by: Renjesh
7 Replies

6. Shell Programming and Scripting

sftp from unix to windows using keys

I'm working on setting up an automated script on a unix server to secure ftp (get) a file from a remote host which is a windows server with Vshell . I understand in order for the paswword-less authentication to work , I need to copy the authorization keys of our server(Solaris) to the remote host... (1 Reply)
Discussion started by: thrashers
1 Replies

7. Shell Programming and Scripting

automate sftp using unix script

Hi All, I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Discussion started by: priyamurthy2005
34 Replies

8. Shell Programming and Scripting

Passwordless sftp from UNIX to windows site

Hallo all , I researched many article in this forum as well as googled. But could not get any help. I request the forum to extend some help. Issue: Want to do a passwordless sftp from an unix machine to windows action taken : 1) on local unix machine ssh-keygen -t dsa 2) Next step ,... (2 Replies)
Discussion started by: konark
2 Replies

9. Shell Programming and Scripting

SFTP from windows E:/ to unix server

Hello All :), I am making a script in the ksh to Secure FTP a set of files from the E:/ drive in windows a computer to a unix server. Had it been in the unix directory, I could have used the expect utility to use the non-interactive mode for sftp, #!/usr/local/bin/expect #!/bin/ksh ... (12 Replies)
Discussion started by: pranavagarwal
12 Replies

10. UNIX for Dummies Questions & Answers

SFTP files from windows drive E: to unix

Hello friends, I was doing this test script which would take a file from my own E: drive to the unix server which i access from a putty. I tried sftp <osuser>@<ipaddress> but it didn't work. does the windows client have to be a server installation? i was trying on win xp from... (4 Replies)
Discussion started by: pranavagarwal
4 Replies
Login or Register to Ask a Question

Featured Tech Videos