Guest User

Untitled

a guest
Feb 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ssh user@server -t "cd /websites/website ; /bin/bash"
  2.  
  3. def ssh():
  4. ''' SSH into the remote server at the correct directory '''
  5. local('ssh -t -p%(port)s %(server)s "cd %(remote_dir)s ; /bin/bash"' % {
  6. 'server': server_host,
  7. 'port': server_port,
  8. 'remote_dir': remote_dir,
  9. })
  10.  
  11. def ssh():
  12. ''' SSH into the remote server at the correct directory '''
  13. run('cd %s ; /bin/bash' % remote_dir)
Add Comment
Please, Sign In to add comment