code_junkie

Python: os.environ.get('SSH_ORIGINAL_COMMAND') returns None

Nov 13th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os
  3. print os.environ.get('SSH_ORIGINAL_COMMAND', None)
  4.  
  5. $ ssh username@host 'some command'
Add Comment
Please, Sign In to add comment