This topic created in 3275 days ago, the information mentioned may be changed or developed.
我们现在需要登录很多节点, 每个节点都无法使用节点名登录,需要用 IP 地址,ip 地址没有规律不好记,本来想修改 /etc/hosts 文件,发现没有 root 权限,有什么好的办法吗。
6 replies • 2017-11-20 17:43:08 +08:00
 |
|
用~/.ssh/config 添加设置?
|
 |
|
tammyNov 20, 2017 via Android
2
alias 呗
|
 |
|
/etc/hosts 像不像是自建的 dns ?
|
 |
|
开始想到用 alias, 后来干脆定义一个脚本,把所有的 IP 都赋给主机名的变量, 直接连变量...哈哈,
|