Hi ,
I have to pass a string through a variable from one host to another. Is that any any way to do it . Please help me
Hi ,
I have to pass a string through a variable from one host to another. Is that any any way to do it . Please help me
Not sure of details, but writing the string to a file and then using ftp to transfer it to the other computer might be an option.
Probably need more details on the setup.
Actually I need a shell script to do it. Eg :
sh login.sh "arun1"
login.sh contains
variable=$1
if [ $variable = arun1 ]
then
ssh jabbo1 sh another_script.sh
elif [ $variable = arun2 ]
then
ssh jabbo2 sh another_script.sh
else
echo different host
fi
another_script.sh :
echo value from another host : $variable
passwd less login through ssh with out using ssh-keygen????
Why can't you use them? Keys are how noninteractive ssh is supposed to work.