SSH连接远程服务器
1. 服务器端
sudo apt install openssh-server
mkdir .ssh
cd .ssh
ssh-keygen -t rsa
cat id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 id_rsa
chmod 600 authorized_keys
chmod 700 ~/.ssh
sudo apt install openssh-server
mkdir .ssh
cd .ssh
ssh-keygen -t rsa
cat id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 id_rsa
chmod 600 authorized_keys
chmod 700 ~/.ssh