SSH to server, Sudo su - then run commands in bash
111784
Pass commands as input to another command (su, ssh, sh, etc)
108798
Run Bash Script as Root
25494
Multiple commands during an SSH inside an SSH session
97219
How to SSH into a specific directory?
80701
SSH in shell script with password
83235
How to execute a remote command and pass in local file as input?
70191
How to specify password in ssh command
151722
Copy over ssh and execute commands in one session
43428
Run script as root at login (no sudoer user, shell session)
95130
Why running command as sudo returns command not found?
4746
How to solve "permission denied" when using sudo with redirection in Bash?
85942
How can I make a process I start during an SSH session run after the session has ended?
36200
Shell script: Run function from script over ssh
130515
How to execute sudo commands with Expect & send commands in bash script?
85093
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
99878
write a shell script to ssh to a remote machine and execute commands
14919
How do I run a 'sudo' command inside a script?