but “expect” command don’t performs. I found sshpass application and it works fine, but I would know is my code right & is here alternatively method for expecting ?
Same here. Get public key authentication working first, then create a script. My ~/bin/thuis does this. Habit is to do this (even if the remote allows this) never ever as root, but connect first, then use ‘su -c yast’ f.e.