- Two protocols are mostly used to establish a connection with a remote machine: SSH(Linux based) and RDD(Window based)
- To establish a secure remote desktop protocol, you need:
-Remote computer turned on & network connetion
-Client & server application installed and enabled
-IP address or username of remote machine
-Permission to the remote connection
-Firewall setting allowed for remote connection
- SSH(Secure Socket Shell): a protocol which allows you to connect securely to a remote computer or server by using text-based interface
-To establish SSH connection, you need: Client & Server
- Client side need to install SSH client application. The client uses remote host's information to initiate connection.
- Server side has a component called SSH daemon which constantly listens to specific TCP/IP port for a possible client connection request.
- When client initiates connection then SSH daemon responds with software and the two will exchange identification data. If it's correct, SSH creates a new session for appropriate environment.
가상환경 설치와 SSH 연결
- 가상환경은 미션에 나와있는 VirtualBox를 설치했다. 무료로 나온 가상환경중에 가장 쓸만하다고들 한다.
- 우분투를 다운받고 버추얼박스에서 설치한다.
- 우분투에서 sudo apt-get install openssh-server 명령어로 SSH 서버 애플리케이션 설치한다. 디폴트로 서버앱이 설치되는 프로그램도 있다고 함.
- service ssh start/status/stop 명령어로 ssh를 enable/status check/disable 할 수 있다. 그 외의 명령어도 있으니 참고하자.
- apt install net-tool로 넷툴 설치하면 ifconfig 명령어를 통해 아이피주소를 확인할 수 있다.
- 버추얼박스 - 설정 - 네트워크 - 어드밴스 - 포트포워딩에서 포트를 추가해준다. ifconfig로 확인한 아이피 주소를 넣고 게스트 포트에는 22를 넣었다.
- 아이텀으로 넘어가 ssh username@IP주소 명령어를 통해 SSH 연결이 가능하다고 하는데 왜인지 자꾸 connection refused가 떴고 명령어 뒤에 -p 2222 옵션을 넣었더니 연결이 되었다.
Comment
- 가상환경 설치, SSH 등 오늘 주워담은 키워드들이 하나같이 너무 생소해서 호눅스가 설명을 해줘도 알아듣질 못했고 그룹원들이 알려줘도 내가 뭘 하고있는지 감이 안 잡혔다. 정말 하는대로 하다보니 어느정도 컨셉은 이해가 가지만.. 오늘도 내가 공부해야할 것들은 아직 세상에 너무너무 많다는 걸 다시금 깨우쳤다.😅
- 할 건 많은데 시간이 너무 잘 간다. 잘 가는 게 아니라 삽질을 하다보면 몇시간씩 지나있다. 난 한 게 없는데.. 호눅스 말로는 삽질을 잘 하는 것도 중요하다고 하셨는데..
Tomorrow I Will
- 못 다 끝낸 미션 끝내기 - 쉘스크립트 공부하기