Mac终端访问Linux Ubuntu

1 linux firewall check

1.1 check firewall status

sudo ufw satus
# input password

在这里插入图片描述

1.2 Add firewall rules:port and ip

sudo ufw allow 22
sudo ufw allow from 192.168.1.2

在这里插入图片描述

2. Install openssh-server

sudo apt-get install openssh-server
trick: when ssh 192.168.1.2 on Mac, will connection refused, this step will solved this.

3. Mac Terminus Configure

3.1 Terminal ssh check

ssh 192.168.1.2

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-26-generic x86_64)

3.2 Create New Host

  • step1~3 New host, input Label , Address IP
    在这里插入图片描述
  • step4~6 Username, password and click save
    在这里插入图片描述

3.3 Connect host

在这里插入图片描述

4. Result

Connection built~
## 3.2

Guess you like

Origin blog.csdn.net/minovophy/article/details/119989345