下面给出配置和使用ubuntu ssh的指南。
环境
Ubuntu22.04
安装Install
sudo apt update && sudo apt upgrade
sudo apt install openssh-server
使用start
service ssh status
sudo systemctl enable --now ssh
sudo ufw allow ssh
连接Connect
search "connect to host"
ssh username@your.ip.address
sshpass -p 'password' ssh username@your.ip.address