ubuntu start ssh server code example Example 1: ssh restart ubuntu sudo service ssh restart Example 2: how to connect my ubuntu server to ssh ssh [email protected]