我设置了一个带有 Host-Only 适配器的 Ubuntu VirtualBox VM。 Ubuntu 用户是remy
.我通过以下方式检查了连接ping
:好的。
我从虚拟机执行此操作(这次使用 NAT 网络连接来连接到 Internet):
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
您确定要继续连接吗(是/否)?
你对这个问题的回答是“是”吗? (字面意思 - 是的必须拼写出来)