Unix/Linux Go Back    

Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Passwordless sftp connection from UNIX to windows server

Windows & DOS: Issues & Discussions

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-12-2015   -   Original Discussion by Jcpratap
Jcpratap's Unix or Linux Image
Jcpratap Jcpratap is offline
Registered User
Join Date: Feb 2012
Last Activity: 7 July 2017, 2:47 AM EDT
Location: India
Posts: 68
Thanks: 3
Thanked 4 Times in 4 Posts
Passwordless sftp connection from UNIX to windows server

HI ,
I am trying to make a passwordless sftp connection from a unix server to windows server

I have used a existing script which is like this

cd /home150/adm/.ssh/
ssh-agent /usr/bin/ksh <<EOF
ssh-add -l
sftp IDBUSER@abc.com
cd /home/IDBUSER/Share/IDB/
rm ${FILE}

This script is not working and is asking for a password,in IDBNEWKEY i have pasted the private key of windows server.

Is my approach correct , what key is to be copied in IDBNEWKEY , private or public key of destination windows server or something else.

Also can someone please explain below lines

ssh-agent /usr/bin/ksh <<EOF
ssh-add -l

Last edited by vbe; 03-12-2015 at 04:37 AM.. Reason: replace icode to code...
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP) hemanthsaikumar Shell Programming and Scripting 13 07-31-2014 04:14 PM
SFTP connection to SSH2 UNIX server krishna87 UNIX for Dummies Questions & Answers 3 02-19-2012 05:16 PM
sftp connection from Unix to windows Renjesh Shell Programming and Scripting 7 09-09-2009 07:22 AM
sftp Connection from Unix to Windows 2003 server using Passphrase vijayin Shell Programming and Scripting 1 09-08-2009 02:07 PM
Passwordless sftp from UNIX to windows site konark Shell Programming and Scripting 2 03-24-2008 03:36 PM

All times are GMT -4. The time now is 03:14 PM.