07-22-2008
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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. AIX
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
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
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 userid@sftp.test.com
Connecting to sftp.test.com...
userid@sftp.test.com's... (5 Replies)
Discussion started by: blt123
5 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT CENTOS
libssh2_sftp_rmdir_ex
libssh2_sftp_rmdir_ex(3) libssh2 manual libssh2_sftp_rmdir_ex(3)
NAME
libssh2_sftp_rmdir_ex - remove an SFTP directory
SYNOPSIS
#include <libssh2.h>
#include <libssh2_sftp.h>
int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path,
unsigned int path_len);
DESCRIPTION
Remove a directory from the remote file system.
sftp - SFTP instance as returned by libssh2_sftp_init(3)
sourcefile - Full path of the existing directory to remove.
sourcefile_len - Length of the full path of the existing directory to remove.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_SOCKET_TIMEOUT -
LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be
returned by the server.
SEE ALSO
libssh2_sftp_init(3)
libssh2 0.15 1 Jun 2007 libssh2_sftp_rmdir_ex(3)