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
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~