The newly installed Ubuntu 18.04 LTS does not have ssh, and the operation to open it is as follows:
sudo apt-get update
sudo apt-get install openssh-server
sudo apt install net-tools
Then use the
ifconfigcommand to view the ip, for example, here is10.252.153.231, the user name isso, then you can usessh [email protected]to access this host through other clients, of course, The premise is that it is in the same network, and other configurations are required for different network access, so I won't mention it here.

operating
Here I use my mac to access the host. You can see that after the connection is successful, you can enter the password to operate the host.

test
Conversely, how do I want to use Ubuntu to access the mac, it is denied by default. Open Preferences -> Sharing, and enable remote login as shown in the figure, so that you can access.

Denied by default

Open ssh