Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google site



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-22-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
Automate SFTP UNIX to Windows

Hi,
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 .
by
ssh-keygen -t dsa
~/.ssh2/id_key
~/.ssh2/id_key.pub
and public key copied into .ssh2/authorised_key file in AIX .
then i transfered my public key file (id_key.pub) 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 ,
Mahiban
Sponsored Links
  #2 (permalink)  
Old 07-22-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 2,668
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 (permalink)  
Old 07-22-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
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 ,
Mahiban
  #4 (permalink)  
Old 07-22-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 2,668
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 (permalink)  
Old 05-07-2009
Registered User
 

Join Date: Mar 2009
Posts: 23
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 (permalink)  
Old 05-12-2009
Registered User
 

Join Date: Mar 2009
Posts: 23
Wow, I guess I stumped everyone, eh? Nobody has ever automated sftp to send files?
  #7 (permalink)  
Old 05-13-2009
homeyjoe's Avatar
Registered User
 

Join Date: Jan 2009
Location: Minnesota
Posts: 68
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.
Sponsored Links
Closed Thread

Bookmarks

Tags
ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
automate sftp using unix script priyamurthy2005 Shell Programming and Scripting 34 02-02-2009 07:36 AM
Automate SFTP UNIX to Windows mahiban Windows & DOS: Issues & Discussions 1 07-22-2008 06:56 AM
SFTP from windows E:/ to unix server pranavagarwal Shell Programming and Scripting 12 11-28-2007 10:58 AM
SFTP files from windows drive E: to unix pranavagarwal UNIX for Dummies Questions & Answers 4 11-26-2007 09:17 AM
Automate batchfile generation for sFTP mpang_ Shell Programming and Scripting 0 04-26-2006 06:34 AM



All times are GMT -4. The time now is 02:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0