Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- localhost$ ssh example.com
- example.com$ ls
- /folder1
- /folder2
- example.com$ _
- $ ssh user@host -t 'bash -l -c "ls;bash"'
- ssh user@host -t 'ls; exec $SHELL -l'
- if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
- fi
- YOUR_DEFAULT_SHELL -c COMMAND
- ssh user@host -t 'screen bash -l -c "ls;bash"'
- ssh -tt user@host 'bash -l -c "/path/to/command'
Add Comment
Please, Sign In to add comment