Advertisement
nipunchawla786

ssh_Python

Jun 10th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. __author__ = 'nipun'
  2. import os
  3. ip="127.0.0.1"
  4.  
  5. l=ip.split('.')
  6.  
  7. first_octet=l[0]
  8. second_octet=l[1]
  9. third_octet=l[2]
  10. fourth_octet=l[3]
  11.  
  12. user="root@"
  13. os.system("ssh -t"+user+
  14.           first_octet+'.'+
  15.           second_octet+'.'+
  16.           second_octet+'.'+
  17.           third_octet+'.'+
  18.           fourth_octet)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement