【发布时间】:2013-09-07 10:10:33
【问题描述】:
使用 scp 时出现此错误:
scp -r h1:/dir1 h2:/dir1
ssh: Could not resolve hostname online1: Name or service not known
lost connection
但是ssh h1 和ssh h2 都很好用,因为我在 .ssh/config 中有这样的配置名称别名:
Host h1
HostName 172.16.18.xxx
User xxx
在 /etc/hosts 上没有编辑。我还使用ssh-copy-id 来计算公钥。知道出了什么问题吗?
【问题讨论】: