Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active January 28, 2019 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/712ce935287f802af9d2acb04a801ede to your computer and use it in GitHub Desktop.
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
### 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