호스트 전용 어댑터를 사용하여 Ubuntu VirtualBox VM을 설정했습니다. Ubuntu 사용자는 다음을 remy
통해 연결을 확인했습니다 ping
.
가상 머신에서 이 작업을 수행합니다(이번에는 NAT 네트워크 연결을 사용하여 인터넷에 연결).
sudo apt install openssh-client openssh-server
sshd
실행중인지 확인해보니
ps -A | grep ssh
산출:
<pid> ? 00:00:00 sshd
다음 명령을 사용하여 Mac OS 호스트에서 게스트 서버에 연결하려고 합니다.ssh -v [email protected]
산출:
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: /etc/ssh/ssh_config line 52: Applying options for *
debug1: Connecting to 192.168.99.101 [192.168.99.101] port 22.
debug1: Connection established.
debug1: identity file /Users/remy/.ssh/id_rsa type -1
debug1: identity file /Users/remy/.ssh/id_rsa-cert type -1
debug1: identity file /Users/remy/.ssh/id_dsa type -1
debug1: identity file /Users/remy/.ssh/id_dsa-cert type -1
debug1: identity file /Users/remy/.ssh/id_ecdsa type -1
debug1: identity file /Users/remy/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/remy/.ssh/id_ed25519 type -1
debug1: identity file /Users/remy/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/remy/.ssh/id_xmss type -1
debug1: identity file /Users/remy/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Ubuntu-10
debug1: match: OpenSSH_7.9p1 Ubuntu-10 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.99.101:22 as 'remy'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:FP93K2351YfhImrQqD8X6PbjX3tyFc8xixJL5Vd/Vic
The authenticity of host '192.168.99.101 (192.168.99.101)' can't be established.
ECDSA key fingerprint is SHA256:FP93K2351YfhImrQqD8X6PbjX3tyFc8xixJL5Vd/Vic.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
SSH를 처음 사용합니다. 도움을 주시면 감사하겠습니다.
답변1
계속 연결하시겠습니까(Y/N)?
이 질문에 "예"라고 대답하시겠습니까? (문자 그대로의 의미 - yes라고 철자해야 함)