직관적인느낌

SSH로 접속해 Real_turtlebot3 with WSL2(melodic-18.04) 본문

공학/ROS

SSH로 접속해 Real_turtlebot3 with WSL2(melodic-18.04)

범슐랭 2023. 2. 27. 16:19

SSH 서버 설치하기

#패키지 업데이트하기
sudo apt update
#SSH서버 설치하기
sudo apt install openssh-server
#ssh셋팅하기
sudo systemctl enable ssh
#net-tools 설치
sudo apt install net-tools
#ip주소 확인
ifconfig
#호스트키 생성
sudo ssh-keygen -A
#비밀번호 인증방식 사용
sudo nano /etc/ssh/sshd_config
#다음 내용을 수정합니다.
PasswordAuthentication no >> yes

터미널 닫고, 새로 열기

  • 먼저, 접속하고자 하는곳(ex.로봇)의 ip 확인
ifconfig

  • 접속하는곳(ex.원격접속PC)에서, 접속할 곳(ex.로봇)의 ID를 맞춰서 접속한다.
ssh leecar@192.168.0.204

728x90
반응형