首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能SSH到VirtualBox VM

不能SSH到VirtualBox VM
EN

Unix & Linux用户
提问于 2020-01-07 17:12:02
回答 1查看 209关注 0票数 0

我用一个只有主机的适配器设置了一个Ubuntu VirtualBox VM。Ubuntu用户是remy。我通过ping检查了连接:好的。

我是从VM (使用这次NAT网络连接连接到Internet):

代码语言:javascript
复制
sudo apt install openssh-client openssh-server

我检查了sshd是否运行在

ps -A | grep ssh

产出:

<pid> ? 00:00:00 sshd

我尝试用:ssh -v remy@192.168.99.101从Mac连接到客服服务器。

产出:

代码语言:javascript
复制
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: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com 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 ..。任何帮助都很感激。

EN

回答 1

Unix & Linux用户

发布于 2020-01-08 10:42:33

您确定要继续连接(是/否)吗?

你的回答是肯定的吗?(字面上说-是的必须写出来)

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/560849

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档