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
def UploadSSHPubKey(): | |
_Home = os.environ['HOME'] | |
_PubKeyFile = _Home + "/.ssh/id_rsa.pub" | |
_PubKey = open(_PubKeyFile, 'r').read().strip('\n') | |
with cd('~'): | |
run('mkdir -p .ssh') | |
run('chmod 700 .ssh') | |
append('.ssh/authorized_keys', _PubKey) |
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
#!/usr/bin/python | |
# puts current user's public key to remote host | |
# andy slepuhin, devops | |
# 2013-09-11, wargaming.net | |
import os, optparse | |
parser = optparse.OptionParser() | |
parser.add_option('-l', '--login', help='username', dest='Login') |
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
[global] | |
passdb backend = smbpasswd | |
workgroup = NAS | |
security=user | |
server string=NAS Server | |
encrypt passwords = Yes | |
username level = 0 | |
map to guest = Bad User | |
null passwords = yes | |
max log size = 10 |