Linux
Setup ssh on Ubuntu 20.04.4 LTS
GunwooYun
2022. 10. 4. 23:40
PuTTY를 이용해 우분투에 SSH 접속을 하려고 하지만 실패한다.
인터넷에 있는 SSH 접속 방법을 따라해본다.
$ sudo apt install openssh-server
SSH Server 를 실행해본다. 그전에 서버가 실행되고 있는지 확인해본다.
음, 실행해보자.
이제 PuTTY 에서 한번 접속해보자.
뭔가 또 안된다. 아래 파일을 열어 내용 좀 수정하자.
$ sudo vi /etc/ssh/sshd/config
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no <-- 이부분을 'yes' 로 바꾸자
#PermitEmptyPasswords no
$ sudo service ssh restart
다시 PuTTY 로 접속해본다.
나이스하다.