Last active
January 28, 2019 00:05
-
-
Save dasgoll/712ce935287f802af9d2acb04a801ede to your computer and use it in GitHub Desktop.
Install sshpass on macOS - user login with password while server is PasswordAuthentication no
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### no password login is allowed | |
PasswordAuthentication no | |
### but we allow it for user jameel | |
Match User jameel | |
PasswordAuthentication yes | |
Match all | |
###Worked like a charm on macOs Sierra (10.12.6) | |
brew install http://git.io/sshpass.rb | |
sshpass -p 'micontrasenia' ssh -F /dev/null jameel@54.10.11.52 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment