본문 바로가기

Python/Django

[Django] Linode 배포 - SSH

이번 시간에는 linode 에 SSH 연결하는 방법에 대해서 알아보겠습니다.

 

윈도우 환경에서 연결하기 위해서는 OpenSSH Client, OpenSSH Server 둘다 설치한다. 윈도우 버전에 따라 이미 설치되어 있을수 있다. 윈도우11에서는 Client 버전이 기본으로 설치되어 있다. 

서버 버전은 필요없을 수도 있다.

 

 

아이피 정보 및 접속 명령어는 아래 그림을 참고하면 됩니다.

 

 

 

파워쉘에서 아래 명령어를 실행하고 비밀번호(이전에 설정한 root 비번)을 입력하면 된다.

 

PS D:\workspace\Python\Django\DJANGO4\DJANGO_COURSE_V2> ssh root@45.118.135.29
The authenticity of host '45.118.135.29 (45.118.135.29)' can't be established.
ED25519 key fingerprint is SHA256:mZCRgYcA/1YlqG6cQD2gFWt7TRawrZk0IZdn3BhgIhE.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '45.118.135.29' (ED25519) to the list of known hosts.
Connection closed by 45.118.135.29 port 22
PS D:\workspace\Python\Django\DJANGO4\DJANGO_COURSE_V2> ssh root@45.118.135.29
root@45.118.135.29's password: 
Linux 45-118-135-29.ip.linodeusercontent.com 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@45-118-135-29:~#

 

문제없이 연결된것을 볼 수 있다.