I have created a shell script as given below.But it is not reading username and password.What Iam expecting form this script is to login as a normal user to a remote machine and login to root user to run some commands there.
ssh -t [email protected] '
echo "user logined !";
su root -c "
echo Give username :;
read username;
echo Give password :;
read password;
echo $username;
echo $password;
";
'
rootto start?