SSH経由でVirtualBox仮想マシンに接続できない

SSH経由でVirtualBox仮想マシンに接続できない

ホスト専用アダプタを使用して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とスペルする必要があります)

おすすめ記事