Guest User

Untitled

a guest
May 26th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. localhost$ ssh example.com
  2. example.com$ ls
  3. /folder1
  4. /folder2
  5. example.com$ _
  6.  
  7. $ ssh user@host -t 'bash -l -c "ls;bash"'
  8.  
  9. ssh user@host -t 'ls; exec $SHELL -l'
  10.  
  11. if [ -d "$HOME/bin" ] ; then
  12. PATH="$HOME/bin:$PATH"
  13. fi
  14.  
  15. YOUR_DEFAULT_SHELL -c COMMAND
  16.  
  17. ssh user@host -t 'screen bash -l -c "ls;bash"'
  18.  
  19. ssh -tt user@host 'bash -l -c "/path/to/command'
Add Comment
Please, Sign In to add comment