ENGINEERING/OS
How to install and enable SSH Server on Ubuntu?
Hogeony
2019. 7. 22. 16:40
sudo apt-get install openssh-server -y
sudo ufw allow 22
if ufw is not enable, sudo ufw enable
If you see the error below, command "ssh-keygen -R 172.27.---.----" in client
C:\Users\Hogeony>ssh asus@172.27.---.----
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:yo--------.
Please contact your system administrator.
Add correct host key in C:\\Users\\Hogeony/.ssh/known_hosts to get rid of this message.
Offending RSA key in C:\\Users\\Hogeony/.ssh/known_hosts:2
RSA host key for 172.27.---.---- has changed and you have requested strict checking.
Host key verification failed.
#References
https://thishosting.rocks/how-to-enable-ssh-on-ubuntu/