Multipass를 이용한 Ubuntu 가상 머신 생성, SSH 설정, 텍스트 파일 작성 및 SSH 접속 확인 과정까지의 명령어 정리
multipass launch --name selected-neanderthal
multipass shell selected-neanderthal
sudo apt update
sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo passwd ubuntu
비밀번호 입력 후:
sudo nano /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
→ PasswordAuthentication yes
추가 또는 수정
sudo systemctl restart ssh
ssh ubuntu@192.168.64.9
cat /etc/ssh/sshd_config | grep Port
// 포트번호 확인용 명령어
echo "안녕하세요, 이건 테스트입니다." > hello.txt
cat hello.txt
exit
PasswordAuthentication yes
)