 | Why is it wrong There will be crossed my mind at least once in your life can change the password as an option to the ssh client. So why OpenSSH does not it expected? |
Some of these reasons could be
- Not sure if we pass the password as an option from the commands you type will be logged, we find it in your ~ /. Bash_history, and I assure you that a ln-s / dev / null ~ /. Bash_history does not resolve the situation. We have logged all of our shell commands without our knowledge. Traces of our passwords in many parts of the system.
- It is not necessary, you can also connect to a remote server without entering the password each time, just an exchange of keys. You must put your public key in the file authorized_keys2 host to which we would like to connect. If the key generation we set a passphrase you will be prompted to enter one.
- There ssh-agent that avoids having to enter the passphrase every time we open an ssh connection. We put only once at startup of the daemon ssh-agent.
In some cases it is convenient
Then it becomes necessary to pass the password as an option to ssh?
Read more ...