Thank you so much RudiC for the advice. Yes we will try to make it secure. I tried ssh-add, sshpass, keychain.... but nothing is working.
Please advice.
---------- Post updated at 06:50 AM ---------- Previous update was at 05:55 AM ----------
Got the solution.
1. Store the password in file or environment variable.
2. Export DISPLAY environment variable with some value
3. Create a helper file
4. Execute ssh-add
Moderator's Comments:
Thanks for using tags, but: Please use code tags (not HTML tags) as required by forum rules!
Last edited by RudiC; 05-18-2016 at 08:15 AM..
Reason: Changed HTML to CODE tags.
This User Gave Thanks to atanubanerji For This Post:
Hello,
I want to use a shell-script to transfer data over sftp.
I donīt find a way to login in automatically.
I tried to send the password in a script like possible with
ftp
sftp user@server << cmd
password
cd /distant/directory
lcd /local/directoryget ssh_install
get ( or put) your... (2 Replies)
Hello all,
Today we run ssh with keys on all our Solaris systems. But I wounder: Is it possible to add another authentication too. Like the os/system regular password so the users first need to enter the ssh phasssphrase and after that they need to enter the os/system password.
I need like... (3 Replies)
Hello,
I am using AIX 5 and one of the application does certain db updation daily and runs few script. One script among them calls another program, which in turn asks for a user Id and password. Is there anyway to use 'expect' of something similar on AIX so that while calling that program of... (1 Reply)
can i use key with passphrase on a script/batch process?
i am not sure how to pass the pasphrase in the script. i'd like to automate
secure file transfer. thanks in advance (0 Replies)
Below is a part of my shell script. Currently I have shared the public key of the client with the host, therefore I will not be prompted for the password.
The key that has been created on the client is also without a passphrase. If it is created with a passphrase, the code I have will not... (3 Replies)
We have a number of linux clusters running Oracle. The clusters require that all member nodes have promptless/passwordless login through ssh (ie. the keys were created with null passphrases). We also have a management server that is not a member of any cluster but routinely connects to nodes of all... (3 Replies)
ssh passphrase permissions issues
I will try to be as thorough as possible, but keep in mind I am a designer, not a programmer... I do have linux mdadm experience and am reasonably comfortable behind the terminal, but I may need things to be spelled out for me. I am using 2 new-ish Macs with... (1 Reply)
Hi,
I have something like below code piece in ksh
while read machine
do
ssh $user@$machine < steps.ksh $RPI
done < $machine
here, after it gets logged in to server it is not considering the $PRI as argument for steps.ksh script
please suggest the fix. (1 Reply)
Hi Folks,
I have setup a passwordless connection from my Linux ( source) machine toSolaris ( destination ) machine. I have added passphrase while creating the rsa key. Now problem is each time when i make a connection i have to give the passphrase to make connection. How to override this ?
I... (4 Replies)