How can I pass password in SSH command without using expect in a shell program.
I don't have expect installed on my Solaris server.
#!/bin/bash
ssh user@hotname (how to supply pass in script?:wall:)
You can't, and this isn't a bug, it's a feature to prevent anyone on the same machine from getting at your password. Using expect to circumvent this is already a very bad idea in my opinion.
If you don't want to enter a password, use public key authentication.
Use man ssh-keygen (OpenSolaris) to create a key pair and ssh-copy-id to copy the public key to another machine. From that point on ssh will automatically try to authenticate using the private key on the local machine.