gpt4 book ai didi

linux - 通过 SSH 连接到同一网络上的计算机

转载 作者:太空宇宙 更新时间:2023-11-04 05:02:27 26 4
gpt4 key购买 nike

我需要通过 ssh 连接到办公室的计算机,但不知道如何操作。我使用的是 Windows 计算机,想要访问 Linux 计算机。如何找出 Linux 计算机的 IP 地址?我需要担心 SSH key 吗?

获取IP地址后,我是否用以下命令登录该计算机

ssh username@ip

最佳答案

您在 VMware 或 VirtualBox 上使用 Linux 吗?在 Linux 中获取您的 IP 地址

# ifconfig

然后,从 Windows 终端进行 ssh

# ssh user@linux_ipaddress

第一次会询问您,因为不存在 ssh key

The authenticity of xxx
ECDSA key xxxx
Are you sure you want to continue connecting(yes/no)

只需输入"is"即可。当然,你的Linux必须启动sshd并且防火墙(端口22)必须打开。

关于linux - 通过 SSH 连接到同一网络上的计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28362318/

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