sunmingtao / sample-code

3 stars 4 forks source link

How to install ssh server on Ubuntu and enable access remotely (Xiaomi router) #186

Closed sunmingtao closed 3 years ago

sunmingtao commented 3 years ago
sudo apt-get install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
ssh smt@192.168.x.x

Remotely:

To get your public ip curl ifconfig.co image ssh smt@<public ip>