gpt4 book ai didi

docker - 如何通过 xshell SSH docker 机器

转载 作者:行者123 更新时间:2023-12-02 19:10:09 30 4
gpt4 key购买 nike

我知道我可以在 xshell 上键入 docker-engine ssh default ,但是内容将被连接,如果我按 ctrl + c (在 Linux 上经常中断命令),它将离开 docker 机器,如果我使用命令 ssh 192.168 .88.100 它询问用户名和密码,用户名和密码是什么

最佳答案

if I use command ssh 192.168.88.100 it asked username and password, what are the username and password



如果 ssh 在 $HOME/.ssh 中找到正确的公钥/私钥,它不应该要求您提供用户名/密码。执行 ssh 命令的帐户的文件夹。
查看 XShell ssh config(例如 as those shown here )查看您是否可以指定用于连接到 docker 机器的公钥/私钥( they are here )。

关于docker - 如何通过 xshell SSH docker 机器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40857608/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com