daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ssh = paramiko.SSHClient()
  2. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  3. ssh.connect(ubuntu.server, username=ubuntu.uname, password=ubuntu.pwd)
  4. ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command("nohup python {0}/manage.py runserver {1}:{2} &".format(subpad, ubuntu.server, port))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top