automatic SFTP without doing passwordless key with ssh-keygen


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting automatic SFTP without doing passwordless key with ssh-keygen
# 1  
Old 04-05-2012
automatic SFTP without doing passwordless key with ssh-keygen

I need to automate a file transfer thru SFTP. But I cannot do a passwordless key with ssh-keygen between the servers. Is there any other way like we do something like below in FTP???

Code:
ftp -n hostIP << EOF
user userid password
get filename
EOF


Moderator's Comments:
Mod Comment Please use code tags!

Last edited by zaxxon; 04-05-2012 at 08:36 AM.. Reason: code tags, see PM
# 2  
Old 04-05-2012
This has been answered very often in this forum. Try using the search function of the forum first, thanks.
# 3  
Old 04-05-2012
If you have the expect tool you can use that to create an automatic SFTP login/send script, for example.

What OS do you have?
# 4  
Old 04-05-2012
Solaris
# 5  
Old 04-05-2012
This has been answered very often in this forum. Try using the search function of the forum first,
Have patience and search in the forum first.
# 6  
Old 04-05-2012
"interactive password authentication" means "password typed by a human being in realtime authentication". That's the only way it's supposed to take a password, and they did everything they feasibly could to prevent you from brute-forcing it any other way.

There's a reason you have to install third-party hacking utilities to even try -- it's a bad idea to keep recoverably stored passwords around, and completely avoidable.

Last edited by Corona688; 04-05-2012 at 11:19 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ssh-keygen problems

For some reason, when I try copying my public key to the server, despite it showing as being successful: rob@linux044:~$ ssh-copy-id -i /home/rob/Work/Keys/keys.txt.pub !@#$%.com /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/rob/Work/Keys/keys.txt.pub"... (7 Replies)
Discussion started by: Circuits
7 Replies

2. AIX

Ssh-keygen (Saving the key failed:)

Hi guys, Anyone encountered the following error. 1.) all keys and passphrases worked on aix 7.1.2 2.) upgraded to aix 7.1.3sp5 3.) none of the keys / passphrases work anymore. 4.) when generating new keys without passphrase everything is ok. 5.) when generating keys with passphrase and... (16 Replies)
Discussion started by: NoLogic001
16 Replies

3. Red Hat

ssh private key passwordless authentication

Hello, Need a suggestion to setup private key passwordless authentication. I am not sure this can done or not :wall: here is the sincerio I have two servers, sever1 with a user "user1" and servera with usera here dataflow: usera from servera, will pull/push files to server1 on user1... (2 Replies)
Discussion started by: bobby320
2 Replies

4. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

5. UNIX for Dummies Questions & Answers

ssh-keygen error

Hi, I using ssh-keygen for passwordless authenciation firstly and I am following these steps mentioned below... 1) Login to pngpcdb1 using your user/pass 2) type 'bash' (without quotes) 3) ssh-keygen #generates private and public key. 4) copy this private key to the location of your sftp... (1 Reply)
Discussion started by: karan2597
1 Replies

6. UNIX for Dummies Questions & Answers

keygen-ssh

Hi, I was going thruough the password less authentication of keygen-ssh that will help us in generating keys...One thing that is not clear to me that if in nearby future we conncet to remote ftp server in that case now we need to only provide the user id itself that is password would not be... (1 Reply)
Discussion started by: rahul125
1 Replies

7. UNIX for Dummies Questions & Answers

ssh-keygen

Hi, I am new to unix, recently i was exploring password less remote connection to the ftp server and in that I was exploring the ssh-keygen utility, that it generates private & public keys that helps in transmitting files in encrypted format.Could you please explain me in detail about the... (1 Reply)
Discussion started by: rahul125
1 Replies

8. UNIX for Dummies Questions & Answers

how to create a public/private key using ssh-keygen

Hi, please guide me create a public/private key using ssh-keygen, lets say I have been access to server named pngpcdb1with a userid and password ...!!! and also please explain in detail the concept of these keys and ssh as I was planning to use them in ftp related scripts..! Thanks in... (1 Reply)
Discussion started by: rahul125
1 Replies

9. Shell Programming and Scripting

Query regarding ssh keygen

Hi, I have two Unix servers A and B. I have a script in server A. I want to connect to server B from A using ssh only and without giving passwords everytime i connect. I went through other posts regarding this and I generated a public key in server A and copied that in server B. Now when I... (3 Replies)
Discussion started by: mick_000
3 Replies

10. Shell Programming and Scripting

Passwordless SFTP

Hi, When Iam trying to do SFTP it is asking for password everytime. Can I have any alternative where I can provide the password in script itself. Because there are some control-M jobs which runs without user interaction. So please let me know the script where we can provide the password in the... (2 Replies)
Discussion started by: manneni prakash
2 Replies
Login or Register to Ask a Question