Guest User

Untitled

a guest
Mar 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # Remote shell:
  2. python -c 'import pty; pty.spawn("/bin/bash")'
  3. ctrl-z
  4.  
  5. # Local shell:
  6. stty -a
  7. echo $TERM
  8. stty raw -echo
  9. fg
  10.  
  11. # Remote shell:
  12. reset
  13. export SHELL=bash
  14. export TERM=xterm-256color
  15. stty rows 45 columns 150
Add Comment
Please, Sign In to add comment