ssh remote command code example
Example 1: ssh run single command
ssh -t username@host 'top'
Example 2: bash how to log in to remote server
# Basic syntax:
ssh username@ip_or_host_address
password
Example 3: ssh login
ssh [username]@[ip]
ssh -t username@host 'top'
# Basic syntax:
ssh username@ip_or_host_address
password
ssh [username]@[ip]