1
0

ssh.md 550 B

SSH

Install server

sudo apt install openssh-server

Config server

sudoedit /etc/ssh/sshd_config

Auto start ssh

sudo systemctl enable ssh
sudo systemctl start ssh
sudo service ssh restart

Add key

ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.10

Mosh

Fix locale problem

Run sudo dpkg-reconfigure locales on your remote host and select locales that are installed on your local computer (like en_GB.UTF-8).

By the way, if you want select a locale, use export LC_ALL="en_US.UTF-8"