Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(ubuntu.server, username=ubuntu.uname, password=ubuntu.pwd)
- ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command("nohup python {0}/manage.py runserver {1}:{2} &".format(subpad, ubuntu.server, port))
Add Comment
Please, Sign In to add comment