using sftp with password
Hey guyz,
i need to use sftp with a password.. not with the open ssh keygen. i tried this FTPDESTI=$USER@$ip sftp -b $FILE root@ip << EOF EOF in the file $FILE it contains: password ls any idea where i go wrong? |
doesn't sftp normally have a password?
|
i am writing a script on it....
i wanna go in through sftp with a password,,, how do i put the sftp password in the script? |
As far as I'm concerned there is no way to do that by means of the sftp command. Apart security concerns which you may have taken into account, a method can be using expect, which talk to interactive applications. For example the script
Code:
#!/usr/bin/expect |
hmmm.....
if i do not have expect in /usr/bin.. where do i go to get it? |
Quote:
|
hmm i want something like that example he give hmm unless there is a better way.. cause its just for house keeping.. no biggie
|
I would encrypt the password rather then storing it in clear text
|
Quote:
Quote:
|
hmm right...
so how do i get this method to work?? |
Which linux are you running on?
|
hmmmm
red hat linux 9 hmm but some colleauges of mine changed the kernal |
Hmmm... I doubt that a RPM for RedHat9 is available somewhere. You may consider to compile from source (see the link I posted).
|
All times are GMT -5. The time now is 04:51 AM. |