2 ms·
putting --password as an argument would make your password viewable with a simple "ps" command, would add your password to your history by default and a host of
by m463 7y ago
putting --password as an argument would make your password viewable with a simple "ps" command, would add your password to your history by default and a host of other issues.
I think sshpass might be a workaround, but sometimes you can just dig a little deeper into your situation and find if you can add authorized keys somehow.
I recall using a router with ssh access, but it didn't run true ssh with a .ssh/authorized_keys, but there turned out to be a way to add keys to the config for automated access.