linux - 如何通过ssh访问vmware里的debian
PHP中文网
PHP中文网 2017-04-17 11:12:35
0
2
443

最近在学习linux,将debian安装在vmware fusion中。
想完整的将网站部署流程走一遍,也就是先通过ssh访问主机,再开始部署其他东西。

我不知道如何创建ssh服务,也不知道宿主的mac怎么访问vmware内部的linux
所以想知道这两步怎么解决?

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
巴扎黑

But use the following command to install the ssh service. apt-get install sshIt’s also possible

# apt-get update
# apt-get install openssh-server openssh-client

After the installation is complete, the ssh service will be started, and no configuration is required. Then you need to use /sbin/ifconfig to check your IP address. Then connect through this IP address. If you have a graphical client, you can log in by directly entering the IP address and user name. The command line method can be connected through commands similar to ssh username@1.2.3.4.

In addition, regardless of whether the virtual machine is configured in NAT mode or bridge mode, the host running VMware can connect to the virtual machine normally. However, if it is configured in bridge mode, other computers in the LAN can also access your virtual machine.

But I usually install the ssh service directly when installing the system, and then use ssh all the time.

For more details about ssh configuration, please refer to Debian’s wiki and OpenSSH manual.

巴扎黑

Set the Linux network mode in vmware to bridge mode, so that you can communicate with the host. For details, please refer to the configuration of VM setting bridge mode to enable Linux guests to access the external network. As for the deployment and use of ssh in debian, please refer to SSH Configuration and Troubleshooting....
If it still doesn't work, you can ask Google first. If it doesn't work, then ask here.
ps: I don’t quite understand in your question whether you need to use ssh to connect to mac in debian or connect to debian in mac.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template