Created
September 26, 2013 23:23
-
-
Save AlainODea/6722007 to your computer and use it in GitHub Desktop.
Configure SmartOS Global Zone (GZ) for SSH public key-only access
This file contains hidden or 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
#!/bin/bash | |
# clumsiness due to my inability to get sed -i working in the GZ (BSD sed) | |
tempfile=$(tempfile) | |
cat /usbkey/ssh/sshd_config | sed 's/PasswordAuthentication yes/PasswordAuthentication no/' > $tempfile | |
cat $tempfile /usbkey/ssh/sshd_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment