I am looking for a way to ssh to a machine, without using SSH keys. When I try to pass the password

    echo "password" | ssh user@machine

It just gives me an stdin error

How do I SSH without using keys (and without installing anything would be preferred)


Is not a good practice to login with on-line password.

I know you're asking a way to do this without installing something is preferred, but what I use is sshpass package.

$ sudo apt-get install sshpass

Then execute the following

$ sshpass -p 'PASSWORD' ssh user@machine

Give a try.

Not the answer you're looking for? Browse other questions tagged or ask your own question.