Recent Comments
Link
Recent Posts
Today
Total
«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
관리 메뉴

Study Memory Work

[Linux] SSH / 사용자PC에서 서버PC 제어하기 / 서버 컴퓨터 원격 접속 본문

Linux (Ubuntu, macOS)

[Linux] SSH / 사용자PC에서 서버PC 제어하기 / 서버 컴퓨터 원격 접속

Hera Choi 2022. 9. 29. 10:37

 

  • SSH : 가상의 서버 컴퓨터(리눅스)에 원격으로 접속하기 위한 보안 프로토콜.

 

  • 준비 :

- 서버 : SSH가 깔려있고, Active 상태.

서버 유저명/유저패스워드, 서버 IP

- 클라이언트(사용자) : SSH Client가 깔려있는 상태.

 

 

  • Client PC에서 서버 접속하기
> ssh hs@192.168.56.12    // 서버 '유저명@IP' 로 검색

The authenticity of host '192.168.56.12 (192.168.56.12)' can't be established.
ECDSA key fingerprint is SHA256:Vad9J4iJe2u3qRNnsnRAOO9cNvQgmtl7pkfepZPsxDI.
Are you sure you want to continue connecting (yes/no/[fingerprint])?  yes    // yes 입력

Warning: Permanently added '192.168.56.12' (ECDSA) to the list of known hosts.
hs@192.168.56.12's password:       // pw 입력


Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-48-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

10 updates can be applied immediately.
4 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Wed Sep 21 12:05:21 2022 from 192.168.56.1

서버$            // 접속 성공
 

 

이렇게 접속하고 나면 윈도우 디렉토리 위치에서 서버 위치로 cmd 내 위치가 바뀐다.

이렇게 원격으로 서버 컴퓨터를 제어할 수 있다.