SSH into server - bash script

Hi,
I want to make an .sh script to open a terminal and connect me to my remote host using SSH, but without asking me for password. How can do I type the command to put the password automatically ?

Wich is the parameter that states the password ?

I currently use in terminal :

ssh me@myhost.com -p 1888 
usage: ssh -1246AaCfgKkMNnqsTtVvXxYy] -b bind_address] -c cipher_spec]
           -D [bind_address:]port] -e escape_char] -F configfile]
           -I pkcs11] -i identity_file]
           -L [bind_address:]port:host:hostport]
           -l login_name] -m mac_spec] -O ctl_cmd] -o option] -p port]
           -R [bind_address:]port:host:hostport] -S ctl_path]
           -W host:port] -w local_tun:remote_tun]]
           [user@]hostname [command]

You would probably need an expect script, and for that you would need to install “expect” (not sure if that is the package name). It will bring in the tcl libraries.

Most people find it easier to use public key encryption and to run ssh_agent.

Lol, why i didn’t think about that.

I’ve just setup public key authentication, no passwords needed.

If anyone is still looking for a way to “not enter” the password every time they SSH, there is a package called “sshpass” in Yast.