ubuntu安装 SSH

sudo apt install openssh-server

安装完成后,SSH服务默认自动启动,你可以通过以下命令校验服务运行状态:
sudo systemctl status ssh

清除ssh key

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:JpWZdZFbm04Dt3xpuJBsjoaix3e/PZ2aqfzOKQFEp+k.
Please contact your system administrator.
Add correct host key in /Users/whpp/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/whpp/.ssh/known_hosts:16
Host key for 192.168.124.100 has changed and you have requested strict checking.
Host key verification failed.

执行
ssh-keygen -R 192.168.124.100(你远程服务器的IP)

你可能感兴趣的:(ubuntu,ssh,linux)