NOTE: Some SSH Server doesn’t allow public key authentication. Then sshpass is a friend here for you.
Install sshpass in MacOS:
1 | brew install esolitos/ipa/sshpass |
Test sshpass:
1 | $ ssh -oProxyCommand="sshpass -f ~/.ssh/windows.passwd ssh -W %h:%p jumphost" -l darling jumphost-npe.paradise.net |
Setup .ssh/config file:
1 | ## Keeping SSH Sessions Alive |