- log.write( "Installing debug ssh key for root user\n" )
- if not os.path.isdir ( ssh_home):
- utils.makedirs( ssh_home )
- utils.sysexec( "cp -f %s/debug_root_ssh_key %s/authorized_keys" % (ssh_source_files,ssh_home), log )
- utils.sysexec( "chmod 700 %s" % ssh_home, log )
- utils.sysexec( "chmod 600 %s/authorized_keys" % ssh_home, log )
+ log.write("Installing debug ssh key for root user\n")
+ if not os.path.isdir (ssh_home):
+ utils.makedirs(ssh_home)
+ utils.sysexec("cp -f {}/debug_root_ssh_key {}/authorized_keys".format(ssh_source_files, ssh_home), log)
+ utils.sysexec("chmod 700 {}".format(ssh_home), log)
+ utils.sysexec("chmod 600 {}/authorized_keys".format(ssh_home), log)