Skip to content

Instantly share code, notes, and snippets.

@alcir
alcir / PermitRootLogin
Last active December 20, 2015 12:29
smartos put PermitRootLogin yes and restart sshd
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config ; svcadm restart ssh
@alcir
alcir / gist:5352859
Created April 10, 2013 08:32
cycle vmadm list
vmadm list |grep KVM |awk '{print $0 system("vmadm info "$1"|grep port")}'