The normal answer to most ssh related problems is: “use public/private keys”
but sometimes this does not work…
What i did regularly was this:
- ssh to xxx@asdads.com
- enter password
- sudo su admin
- cd /apps/hosts/some_project
Thats not very complicated, but its frustrating. What I do now is: “sshxx”, which executes this excpect script in ~/bin/sshxx
(For Ubuntu you need to “sudo apt get install expect” first)
Hello,
expect is not install on my system, also i dont have root access of those machine. is there any other way to pass password in ssh on linux box.
any help will be appreciated.
Best Regards,
Bipin Bahuguna
Maybe its possible to install expect without sudo, download it manually and give it a try (or google for it).
So far I have not found another way to do passwords via ssh, obviously the ssh authors don`t want you to 🙂