【发布时间】:2016-07-29 20:29:09
【问题描述】:
我在这里是因为我发现使用 this other question 中提出的 this guide 设置 SSH 时遇到不同的问题。
首先,我有一台计算机(我想将其用作主机),名为:timmy@timmy-Lenovo-G50-80。我的另一台计算机是一台虚拟机,总是带有 linux mint,名为:test@test-VirtualBox,我想将它用作从机。
到目前为止我所做的是:
-
安装所需的数据包(两台PC):
sudo apt-get install openssh-server openssh-client -
文件
/etc/ssh/sshd_config里面的变化:(仅限master)- 服务器的端口从
22到2222 - 设置
PubkeyAuthentication yes(所以没有变化) - 删除注释:
Banner /etc/issue.net
- 服务器的端口从
停止
当我必须执行这个命令时,我被卡住了:
ssh-copy-id username@remotehost
我想,阅读所写的内容,我必须执行以下操作:
ssh-copy-id timmy@timmy-Lenovo-G50-80
但是:
- 来自 timmy@timmy-Lenovo-G50-80 一切正常,我可以连接到自己(不是我真正想要的)
- 来自 test@test-VirtualBox 它告诉我
ERROR: ssh: Could not resolve hostname timmy@timmy-Lenovo-G50-80: Name or service not known
最后,我要怎么做才能连接这两台电脑?
【问题讨论】:
标签: linux ssh mpi virtualbox