본문 바로가기

os/ubuntu

[ubuntu] ssh remote connection refused



 

ubuntu mate 18.10 기준

#설치 후 remote 연결이 안될 때 키를 생성한다.

ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ""
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -t ecdsa -N ""
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -t ed25519 -N "" 

#ssh 실행
sudo systemctl start ssh

#장비 리부팅 할때 자동으로 서비스가 구동되게 한다.
sudo systemctl enable ssh