Automated passwd protected sftp


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automated passwd protected sftp
# 1  
Old 03-11-2016
Automated passwd protected sftp

I am trying to automate the process using password protected sftp upload the file in daily basis from our server to client server and exit successfully from remote server Getting issue while running the script.

Code:
sftp test@12.342.564.205/passwd--password for sftp
cd /home/group/jagu/txt
put test.txt
bye



Code:
 
shell:-ksh
OS:-AIX

# 2  
Old 03-11-2016
What issues? And, what be the status of your other project?
# 3  
Old 03-11-2016
Hi Rudic,
while running the script showing invalid passwd.In the script i have passed the passwd it self.
Other project got resolved thanks for that.
# 4  
Old 03-11-2016
What syntax/mechanism did you use to "automatically" supply the password? I don't know of any except manually entering it.

Last edited by RudiC; 03-11-2016 at 09:27 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Protected RPM package

Is there a way to create a protected RPM package without giving up your source code? (2 Replies)
Discussion started by: cokedude
2 Replies

2. Programming

Regarding the protected variables access

Hello forum, I am siva working as programmer .I was blocked with the below issue so please help any of the forum memebers. testve.h class cv { protected : struct state; state& m_state; }; testVe.cpp struct state { m_size; } the above are 2 files which have the... (3 Replies)
Discussion started by: workforsiva
3 Replies

3. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

4. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

5. Shell Programming and Scripting

sftp automated script

HI, Can anyone has automated sftp script? I want to upload one file from one server to other. Could anyone help us? (3 Replies)
Discussion started by: javeed7
3 Replies

6. Shell Programming and Scripting

How to give passwd along with sftp.

Hi, I need to transfer files to remote host using sftp. How to give pwd along with sftp.i.e while script runs it should not prompt for password. sftp <username>@<hostname> How to add passwd? Thx (5 Replies)
Discussion started by: Mar1006
5 Replies

7. UNIX for Advanced & Expert Users

writable protected file

Greetings I am trying to create a solution that will log information into a file. That is the easy part. What I am trying to do is have a front end script that ill ask a user what their reasoning is for logging in and log that reason into a file. The hard part I am finding is that I need that... (10 Replies)
Discussion started by: Smoker
10 Replies

8. Shell Programming and Scripting

Automated SFTP script

Hi All, I am writing an automated SFTP script to xfer files. I am able to do sftp in batch mode and it is working absolutely fine. The problem is that on redirecting the output of SFTP session to some file, it is not writing about the status of SFTP operation. All i can see in output file is :... (6 Replies)
Discussion started by: aggar_y
6 Replies

9. Shell Programming and Scripting

automated sftp script

Ok, I am sure this has been beat like a dead horse, but I an trying "anew". I am trying to create a script that will automate a file transfer using sftp. Please, I am at rock bottom. Thank you. (2 Replies)
Discussion started by: klindel
2 Replies

10. Shell Programming and Scripting

automated sftp procedure interrupted

Dear experts, I have a local computer and remote computer (only sftp accessed). I want to delete files x and y in both local and remote computer using the following automated script: sftp $remote > /dev/null < mdel.file the file mdel.file has been pre-created, and its content is cd... (2 Replies)
Discussion started by: boyin.huang
2 Replies
Login or Register to Ask a Question