|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, I am not able to give the password in Unix script for SFTP connection. When I am trying to manully SFTP command for accessing the server , it asking for pwd and I could provide the pwd but I am not getting how to provide the pwd inside the Unix script. Code:
sftp -v user@xyz.com. This command is working but how to pass password for connecting the server via Unix bash script. Below is the script: Code:
#!/usr/bin/ksh INGXDIR=/dev # FTP to Vital echo "Connecting to Vital...." sftp -v bcb@fxyz.com << EOF_FTP cd $INGXDIR binary mput NewWdir.zip bye EOF_FTP Please let me know how to give Password for this SFTP connection in Script. Please reply me asap. Its very urgent. Thanks, Vineeta Last edited by Scott; 12-04-2012 at 10:02 AM.. Reason: Please use code tags |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
The best way is to create ssh keys, then sftp beomes passwordless, which is how it was intended to work.
ssh-keygen: password-less SSH login |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
For SFTP connection - How to give password in UNIX Script (ksh)
Hi,
Could you please explain me how to establish the Key between two server. Need step information which i need to follow. My server : abc Vital server :xyz Please let me know how to access the xyz server by SSH key. Notes :We don't have any other option to pass the pwd in Unix script. Please reply me . Thanks Vineeta |
|
#4
|
|||
|
|||
|
The link contains fairly detailed information.
What step are you stuck on? |
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
Ask your unix SA team to install the abc server public keys into xyz server
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SFTP connection to SSH2 UNIX server | krishna87 | UNIX for Dummies Questions & Answers | 3 | 02-19-2012 04:16 PM |
| Password less connection(sftp/ssh) | panknil | Shell Programming and Scripting | 2 | 11-27-2009 11:04 AM |
| sftp connection from Unix to windows | Renjesh | Shell Programming and Scripting | 7 | 09-09-2009 06:22 AM |
| sftp Connection from Unix to Windows 2003 server using Passphrase | vijayin | Shell Programming and Scripting | 1 | 09-08-2009 01:07 PM |
| how to give sftp a password in a shell scripit | kskywr | Shell Programming and Scripting | 3 | 12-13-2006 11:55 PM |
|
|