Open ssh on Ubuntu/Mac

Ubuntu

operating###

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 ifconfig command to view the ip, for example, here is 10.252.153.231, the user name is so, then you can use ssh [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

test###

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


Mac

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

Recommended Posts

Open ssh on Ubuntu/Mac
Open SSH service under Ubuntu
Open SSH service under Ubuntu
Ubuntu19.10 open ssh service (detailed process)
Install Zimbra Open Source Edition on Ubuntu 14.04